Fix tests

This commit is contained in:
Chocobozzz 2019-11-27 10:13:31 +01:00
parent a18bb55e9b
commit 2fa9c40e20
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 8 additions and 4 deletions

View file

@ -177,7 +177,7 @@ async function updateActorAvatarInstance (actor: MActorDefault, info: AvatarInfo
if (actor.Avatar) {
// Don't update the avatar if the filename did not change
if (actor.Avatar.filename === info.name) return actor
if (actor.Avatar.fileUrl === info.fileUrl) return actor
try {
await actor.Avatar.destroy({ transaction: t })