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/activitypub | |
parent | 374c1db98cf22527f5b362c70d3c50e3be4c8885 (diff) | |
download | PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.gz PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.zst PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.zip |
findById -> findByPk
Diffstat (limited to 'server/models/activitypub')
-rw-r--r-- | server/models/activitypub/actor.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts index dda57a8ba..49f82023b 100644 --- a/server/models/activitypub/actor.ts +++ b/server/models/activitypub/actor.ts | |||
@@ -265,7 +265,7 @@ export class ActorModel extends Model<ActorModel> { | |||
265 | VideoChannel: VideoChannelModel | 265 | VideoChannel: VideoChannelModel |
266 | 266 | ||
267 | static load (id: number) { | 267 | static load (id: number) { |
268 | return ActorModel.unscoped().findById(id) | 268 | return ActorModel.unscoped().findByPk(id) |
269 | } | 269 | } |
270 | 270 | ||
271 | static loadAccountActorByVideoId (videoId: number, transaction: Sequelize.Transaction) { | 271 | static loadAccountActorByVideoId (videoId: number, transaction: Sequelize.Transaction) { |