Fix actor refresh

pull/200/head
Chocobozzz 2018-01-11 14:19:18 +01:00
parent 7bc2917145
commit 6fd5ca1ec5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 0 deletions

View File

@ -320,6 +320,8 @@ async function refreshActorIfNeeded (actor: ActorModel) {
await updateActorAvatarInstance(actor, result.avatarName, t) await updateActorAvatarInstance(actor, result.avatarName, t)
} }
// Force update
actor.setDataValue('updatedAt', new Date())
await actor.save({ transaction: t }) await actor.save({ transaction: t })
if (actor.Account) { if (actor.Account) {