fix: なんかアホみたいなバグfix
This commit is contained in:
parent
0e5d164acc
commit
272c5a1dfe
|
@ -74,15 +74,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (emoji == null) {
|
if (emoji == null) {
|
||||||
throw new ApiError(meta.errors.noSuchEmoji);
|
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;
|
let driveFile: MiDriveFile;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue