mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Update discoverIds.ts
This commit is contained in:
1 parent
2ed0a6963f
commit
785407c8ff
1 file changed
+1
-1
@@ -139,7 +139,7 @@ function post() {
|
|||||||
const idsSorted = ids.sort((a, b) => a - b);
|
const idsSorted = ids.sort((a, b) => a - b);
|
||||||
const idsChunked = chunk(idsSorted, CHUNK_SIZE);
|
const idsChunked = chunk(idsSorted, CHUNK_SIZE);
|
||||||
const files = idsChunked.map((ids, chunk) => {
|
const files = idsChunked.map((ids, chunk) => {
|
||||||
const didsWriteStream = new DidsWriteStream().dids(idsSorted);
|
const didsWriteStream = new DidsWriteStream().dids(ids);
|
||||||
const compressed = compress(didsWriteStream.uint8Array);
|
const compressed = compress(didsWriteStream.uint8Array);
|
||||||
const content = Buffer.from(compressed).toString('base64');
|
const content = Buffer.from(compressed).toString('base64');
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user