draftからrequestに
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
53d250dddf
commit
8fd5eb7010
30 changed files with 184 additions and 198 deletions
|
|
@ -37,12 +37,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
) {
|
||||
super(meta, paramDef, async (ps, me) => {
|
||||
const emoji = await this.customEmojiService.getEmojiById(ps.id);
|
||||
const draftEmoji = await this.customEmojiService.getEmojiDraftById(ps.id);
|
||||
const RequestEmoji = await this.customEmojiService.getEmojiRequestById(ps.id);
|
||||
if (emoji != null) {
|
||||
await this.customEmojiService.delete(ps.id, me);
|
||||
}
|
||||
if (draftEmoji != null) {
|
||||
await this.customEmojiService.draftDelete(ps.id);
|
||||
if (RequestEmoji != null) {
|
||||
await this.customEmojiService.RequestDelete(ps.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue