mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
[API] Improve admin/emoji/add
This commit is contained in:
parent
893e48ef13
commit
2545385986
1 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,7 @@ export const meta = {
|
|||
};
|
||||
|
||||
export default define(meta, (ps) => new Promise(async (res, rej) => {
|
||||
await Emoji.insert({
|
||||
const emoji = await Emoji.insert({
|
||||
updatedAt: new Date(),
|
||||
name: ps.name,
|
||||
host: null,
|
||||
|
@ -35,5 +35,7 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
|
|||
url: ps.url
|
||||
});
|
||||
|
||||
res();
|
||||
res({
|
||||
id: emoji._id
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue