diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-21 14:28:06 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-21 14:40:10 +0100 |
commit | 9b39106d5757caf221a88e42e05167a6fac479c6 (patch) | |
tree | ce3ac7907135d82ad13abf648eff4f963448227e /server/models/video/video.ts | |
parent | 374c1db98cf22527f5b362c70d3c50e3be4c8885 (diff) | |
download | PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.gz PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.zst PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.zip |
findById -> findByPk
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index fe81fab1a..4516b9c7b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1313,7 +1313,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1313 | 1313 | ||
1314 | static loadWithFiles (id: number, t?: Sequelize.Transaction, logging?: boolean) { | 1314 | static loadWithFiles (id: number, t?: Sequelize.Transaction, logging?: boolean) { |
1315 | return VideoModel.scope([ ScopeNames.WITH_FILES, ScopeNames.WITH_STREAMING_PLAYLISTS ]) | 1315 | return VideoModel.scope([ ScopeNames.WITH_FILES, ScopeNames.WITH_STREAMING_PLAYLISTS ]) |
1316 | .findById(id, { transaction: t, logging }) | 1316 | .findByPk(id, { transaction: t, logging }) |
1317 | } | 1317 | } |
1318 | 1318 | ||
1319 | static loadByUUIDWithFile (uuid: string) { | 1319 | static loadByUUIDWithFile (uuid: string) { |