mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
(api): fix some issues
This commit is contained in:
parent
4e684e2cd4
commit
bfd7445978
@ -10,7 +10,6 @@ import {
|
|||||||
Snowflake,
|
Snowflake,
|
||||||
User
|
User
|
||||||
} from "@fosscord/util";
|
} from "@fosscord/util";
|
||||||
import { HTTPError } from "lambert-server";
|
|
||||||
import { route } from "@fosscord/api";
|
import { route } from "@fosscord/api";
|
||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
@ -108,7 +107,7 @@ router.patch("/:emoji_id", route({ body: "EmojiModifySchema", permission: "MANAG
|
|||||||
emojis: await Emoji.find({ guild_id: guild_id })
|
emojis: await Emoji.find({ guild_id: guild_id })
|
||||||
}
|
}
|
||||||
} as GuildEmojiUpdateEvent)
|
} as GuildEmojiUpdateEvent)
|
||||||
])
|
]);
|
||||||
|
|
||||||
return res.json(emoji);
|
return res.json(emoji);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user