mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 21:43:09 +02:00
Update export-custom-emojis.ts
This commit is contained in:
parent
c599a304c8
commit
ef485044ea
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
|
|||
});
|
||||
};
|
||||
|
||||
await writeMeta('[');
|
||||
await writeMeta(`{"metaVersion":1,"emojis":[`);
|
||||
|
||||
const customEmojis = await Emojis.find({
|
||||
where: {
|
||||
|
@ -86,7 +86,7 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
|
|||
await writeMeta(isFirst ? content : ',\n' + content);
|
||||
}
|
||||
|
||||
await writeMeta(']');
|
||||
await writeMeta(']}');
|
||||
|
||||
metaStream.end();
|
||||
|
||||
|
|
Loading…
Reference in a new issue