refactor(ApNoteService.ts): 不要な条件を削除

This commit is contained in:
okayurisotto 2023-07-02 14:09:53 +09:00
parent ad92cb607a
commit a24e709a06

View file

@ -345,9 +345,9 @@ export class ApNoteService {
const exists = existingEmojis.find(x => x.name === name); const exists = existingEmojis.find(x => x.name === name);
if (exists) { if (exists) {
if ((tag.updated != null && exists.updatedAt == null) if ((exists.updatedAt == null)
|| (tag.id != null && exists.uri == null) || (tag.id != null && exists.uri == null)
|| (tag.updated != null && exists.updatedAt != null && new Date(tag.updated) > exists.updatedAt) || (new Date(tag.updated) > exists.updatedAt)
|| (tag.icon!.url !== exists.originalUrl) || (tag.icon!.url !== exists.originalUrl)
) { ) {
await this.emojisRepository.update({ await this.emojisRepository.update({