Fix bug
This commit is contained in:
parent
cfee87d3ef
commit
ae16b45c11
6 changed files with 15 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import $ from 'cafy';
|
||||
import define from '../../../define';
|
||||
import { Emojis } from '../../../../../models';
|
||||
import { toPuny } from '../../../../../misc/convert-host';
|
||||
import { toPunyNullable } from '../../../../../misc/convert-host';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
|
|
@ -23,7 +23,7 @@ export const meta = {
|
|||
|
||||
export default define(meta, async (ps) => {
|
||||
const emojis = await Emojis.find({
|
||||
host: ps.host ? toPuny(ps.host) : null
|
||||
host: toPunyNullable(ps.host)
|
||||
});
|
||||
|
||||
return emojis.map(e => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue