WIP(ApNoteService.ts
): as
をなくす
エラーメッセージを考える
This commit is contained in:
parent
a24e709a06
commit
f688d7a933
|
@ -360,10 +360,9 @@ export class ApNoteService {
|
|||
updatedAt: new Date(),
|
||||
});
|
||||
|
||||
return await this.emojisRepository.findOneBy({
|
||||
host,
|
||||
name,
|
||||
}) as Emoji;
|
||||
const emoji = await this.emojisRepository.findOneBy({ host, name });
|
||||
if (emoji == null) throw new Error(''); // TODO
|
||||
return emoji;
|
||||
}
|
||||
|
||||
return exists;
|
||||
|
|
Loading…
Reference in a new issue