mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-29 07:53:02 +00:00
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
2 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
|
||||||
|
|
||||||
if (data.driveFile != null) {
|
if (data.driveFile != null) {
|
||||||
const file = await this.driveFilesRepository.findOneBy({ url: emoji.originalUrl, userHost: emoji.host ? emoji.host : IsNull() });
|
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);
|
await this.driveService.deleteFile(file, false, moderator ? moderator : undefined);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue