diff options
Diffstat (limited to 'server/lib/plugins')
-rw-r--r-- | server/lib/plugins/plugin-helpers-builder.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/plugins/plugin-helpers-builder.ts b/server/lib/plugins/plugin-helpers-builder.ts index 39773f693..dac6b3185 100644 --- a/server/lib/plugins/plugin-helpers-builder.ts +++ b/server/lib/plugins/plugin-helpers-builder.ts | |||
@@ -63,6 +63,10 @@ function buildVideosHelpers () { | |||
63 | return VideoModel.loadByUrl(url) | 63 | return VideoModel.loadByUrl(url) |
64 | }, | 64 | }, |
65 | 65 | ||
66 | loadByIdOrUUID: (id: number | string) => { | ||
67 | return VideoModel.load(id) | ||
68 | }, | ||
69 | |||
66 | removeVideo: (id: number) => { | 70 | removeVideo: (id: number) => { |
67 | return sequelizeTypescript.transaction(async t => { | 71 | return sequelizeTypescript.transaction(async t => { |
68 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(id, t) | 72 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(id, t) |