merge: fix lints (!594)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/594 Approved-by: Marie <2-Marie@users.noreply.activitypub.software> Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
This commit is contained in:
commit
38430f8ef3
|
@ -144,7 +144,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
|
|||
|
||||
if (data.driveFile != null) {
|
||||
const file = await this.driveFilesRepository.findOneBy({ url: emoji.originalUrl, userHost: emoji.host ? emoji.host : IsNull() });
|
||||
if (file && file.id != data.driveFile.id) {
|
||||
if (file && file.id !== data.driveFile.id) {
|
||||
await this.driveService.deleteFile(file, false, moderator ? moderator : undefined);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue