Refactoring

This commit is contained in:
syuilo
2020-03-31 09:15:04 +09:00
parent 28f8933c3c
commit 79354f4faf
5 changed files with 32 additions and 25 deletions

View File

@ -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);
});

View File

@ -36,12 +36,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);
});