forked from mirror/misskey
WIP(ApNoteService.ts
): as
をなくす
エラーメッセージを考える
This commit is contained in:
parent
a24e709a06
commit
f688d7a933
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user