バグfix

This commit is contained in:
mattyatea 2023-12-23 11:06:27 +09:00
parent 7491a4af7b
commit 1f1908870c

View file

@ -65,7 +65,7 @@ export const paramDef = {
} }, } },
Request: { type: 'boolean' }, Request: { type: 'boolean' },
}, },
required: ['id', 'name', 'draft', 'aliases'], required: ['id', 'name', 'aliases'],
} as const; } as const;
@Injectable() @Injectable()
@ -102,7 +102,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
isSensitive: ps.isSensitive, isSensitive: ps.isSensitive,
localOnly: ps.localOnly, localOnly: ps.localOnly,
roleIdsThatCanBeUsedThisEmojiAsReaction: ps.roleIdsThatCanBeUsedThisEmojiAsReaction, roleIdsThatCanBeUsedThisEmojiAsReaction: ps.roleIdsThatCanBeUsedThisEmojiAsReaction,
draft: ps.draft, draft: false,
}, me);} else { }, me);} else {
const file = await this.driveFileEntityService.getFromUrl(emoji.originalUrl); const file = await this.driveFileEntityService.getFromUrl(emoji.originalUrl);
if (file === null) throw new ApiError(meta.errors.noSuchFile); if (file === null) throw new ApiError(meta.errors.noSuchFile);