1
0
forked from mirror/misskey

WIP(ApNoteService.ts): asをなくす

エラーメッセージを考える
This commit is contained in:
okayurisotto 2023-07-02 14:11:27 +09:00
parent a24e709a06
commit f688d7a933

View File

@ -360,10 +360,9 @@ export class ApNoteService {
updatedAt: new Date(), updatedAt: new Date(),
}); });
return await this.emojisRepository.findOneBy({ const emoji = await this.emojisRepository.findOneBy({ host, name });
host, if (emoji == null) throw new Error(''); // TODO
name, return emoji;
}) as Emoji;
} }
return exists; return exists;