1
0
Fork 0

Fix actor refresh

This commit is contained in:
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)
}
// Force update
actor.setDataValue('updatedAt', new Date())
await actor.save({ transaction: t })
if (actor.Account) {