✨ feat: add thumbnailCode field to bulk insert video
This commit is contained in:
@ -175,6 +175,7 @@ Table videos {
|
|||||||
service video_services [not null]
|
service video_services [not null]
|
||||||
serviceId String [not null]
|
serviceId String [not null]
|
||||||
videoCode String [not null]
|
videoCode String [not null]
|
||||||
|
thumbnailCode String
|
||||||
pendingUpload Boolean [not null, default: true]
|
pendingUpload Boolean [not null, default: true]
|
||||||
uploader users [not null]
|
uploader users [not null]
|
||||||
uploadedBy String [not null]
|
uploadedBy String [not null]
|
||||||
|
|||||||
@ -9,8 +9,8 @@ export interface BulkInsertVideoBodyRequest {
|
|||||||
episode: number;
|
episode: number;
|
||||||
videos: Array<{
|
videos: Array<{
|
||||||
service_id: string;
|
service_id: string;
|
||||||
videoCode: string;
|
video_code: string;
|
||||||
thumbnailCode?: string;
|
thumbnail_code?: string;
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,8 @@ export const bulkInsertVideoService = async (
|
|||||||
pendingUpload: false,
|
pendingUpload: false,
|
||||||
episodeId: episodeId.id,
|
episodeId: episodeId.id,
|
||||||
serviceId: videoData.service_id,
|
serviceId: videoData.service_id,
|
||||||
videoCode: videoData.videoCode,
|
videoCode: videoData.video_code,
|
||||||
|
thumbnailCode: videoData.thumbnail_code,
|
||||||
uploadedBy: SystemAccountId,
|
uploadedBy: SystemAccountId,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user