This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

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