mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-08 23:13:08 +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({
|
const customEmojis = await Emojis.find({
|
||||||
where: {
|
where: {
|
||||||
|
@ -86,7 +86,7 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
|
||||||
await writeMeta(isFirst ? content : ',\n' + content);
|
await writeMeta(isFirst ? content : ',\n' + content);
|
||||||
}
|
}
|
||||||
|
|
||||||
await writeMeta(']');
|
await writeMeta(']}');
|
||||||
|
|
||||||
metaStream.end();
|
metaStream.end();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue