aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/redundancy/video-redundancy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/redundancy/video-redundancy.ts')
-rw-r--r--server/models/redundancy/video-redundancy.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts
index 791ba3137..c23a9cc17 100644
--- a/server/models/redundancy/video-redundancy.ts
+++ b/server/models/redundancy/video-redundancy.ts
@@ -125,9 +125,12 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> {
125 return instance.VideoFile.Video.removeFile(instance.VideoFile) 125 return instance.VideoFile.Video.removeFile(instance.VideoFile)
126 } 126 }
127 127
128 static loadByFileId (videoFileId: number) { 128 static async loadLocalByFileId (videoFileId: number) {
129 const actor = await getServerActor()
130
129 const query = { 131 const query = {
130 where: { 132 where: {
133 actorId: actor.id,
131 videoFileId 134 videoFileId
132 } 135 }
133 } 136 }