mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
feat(plugins): add peertubeHelpers.loadByIdOrUUIDWithFiles (#6302)
This commit is contained in:
parent
cd42491cf0
commit
6f6abcabfb
3 changed files with 13 additions and 1 deletions
|
@ -88,6 +88,10 @@ function buildVideosHelpers () {
|
|||
return VideoModel.load(id)
|
||||
},
|
||||
|
||||
loadByIdOrUUIDWithFiles: (id: number | string) => {
|
||||
return VideoModel.loadWithFiles(id)
|
||||
},
|
||||
|
||||
removeVideo: (id: number) => {
|
||||
return sequelizeTypescript.transaction(async t => {
|
||||
const video = await VideoModel.loadFull(id, t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue