]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/sql/shared/video-tables.ts
Optimize rows parsing
[github/Chocobozzz/PeerTube.git] / server / models / video / sql / shared / video-tables.ts
similarity index 97%
rename from server/models/video/sql/shared/video-attributes.ts
rename to server/models/video/sql/shared/video-tables.ts
index e21b33c73d6190e9c060981fd6f4f71274ed0b55..fddf1210c9c8b5ea09757e62178b873a3d8d7588 100644 (file)
@@ -1,10 +1,10 @@
 
 /**
  *
- * Class to build video attributes we want to fetch from the database
+ * Class to build video attributes/join names we want to fetch from the database
  *
  */
-export class VideoAttributes {
+export class VideoTables {
 
   constructor (readonly mode: 'get' | 'list') {
 
@@ -199,6 +199,7 @@ export class VideoAttributes {
     let attributeKeys = [
       'id',
       'filename',
+      'type',
       'fileUrl',
       'onDisk',
       'createdAt',