mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
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 New Issue
Block a user