fix lint
This commit is contained in:
@@ -17,7 +17,7 @@ export const meta = {
|
||||
|
||||
params: {
|
||||
emojiId: {
|
||||
validator: $.type(ID)
|
||||
validator: $.type(ID),
|
||||
},
|
||||
},
|
||||
|
||||
@@ -25,8 +25,8 @@ export const meta = {
|
||||
noSuchEmoji: {
|
||||
message: 'No such emoji.',
|
||||
code: 'NO_SUCH_EMOJI',
|
||||
id: 'e2785b66-dca3-4087-9cac-b93c541cc425'
|
||||
}
|
||||
id: 'e2785b66-dca3-4087-9cac-b93c541cc425',
|
||||
},
|
||||
},
|
||||
|
||||
res: {
|
||||
@@ -37,9 +37,9 @@ export const meta = {
|
||||
type: 'string' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
format: 'id',
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async (ps, me) => {
|
||||
@@ -72,10 +72,10 @@ export default define(meta, async (ps, me) => {
|
||||
await getConnection().queryResultCache!.remove(['meta_emojis']);
|
||||
|
||||
publishBroadcastStream('emojiAdded', {
|
||||
emoji: await Emojis.pack(copied.id)
|
||||
emoji: await Emojis.pack(copied.id),
|
||||
});
|
||||
|
||||
return {
|
||||
id: copied.id
|
||||
id: copied.id,
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user