diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-12-12 06:24:13 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-12-12 06:24:13 +0900 |
| commit | ef485044ea70c6d877c41038256f2946f439f7a9 (patch) | |
| tree | 4c36d46ce0bd883639166d70465e902ea83b709a /packages/backend/src/queue | |
| parent | refactor (diff) | |
| download | sharkey-ef485044ea70c6d877c41038256f2946f439f7a9.tar.gz sharkey-ef485044ea70c6d877c41038256f2946f439f7a9.tar.bz2 sharkey-ef485044ea70c6d877c41038256f2946f439f7a9.zip | |
Update export-custom-emojis.ts
Diffstat (limited to 'packages/backend/src/queue')
| -rw-r--r-- | packages/backend/src/queue/processors/db/export-custom-emojis.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/queue/processors/db/export-custom-emojis.ts b/packages/backend/src/queue/processors/db/export-custom-emojis.ts index aa13c76638..925b187970 100644 --- a/packages/backend/src/queue/processors/db/export-custom-emojis.ts +++ b/packages/backend/src/queue/processors/db/export-custom-emojis.ts @@ -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(); |