Refactoring
This commit is contained in:
parent
28f8933c3c
commit
79354f4faf
5 changed files with 32 additions and 25 deletions
|
|
@ -51,12 +51,5 @@ export default define(meta, async (ps) => {
|
|||
.take(ps.limit!)
|
||||
.getMany();
|
||||
|
||||
return emojis.map(e => ({
|
||||
id: e.id,
|
||||
name: e.name,
|
||||
category: e.category,
|
||||
aliases: e.aliases,
|
||||
host: e.host,
|
||||
url: e.url
|
||||
}));
|
||||
return Emojis.packMany(emojis);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue