fix: なんかアホみたいなバグfix

This commit is contained in:
mattyatea 2023-09-15 19:53:04 +09:00
parent 0e5d164acc
commit 272c5a1dfe
1 changed files with 0 additions and 8 deletions

View File

@ -74,15 +74,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (emoji == null) {
throw new ApiError(meta.errors.noSuchEmoji);
}
const existEmoji = await this.emojisRepository.exist({
where: {
name: emoji.name,
},
});
if (existEmoji) {
throw new ApiError(meta.errors.duplicationEmojiAdd);
}
let driveFile: MiDriveFile;
try {