fixed regression #819

This commit is contained in:
Jan Prochazka
2024-06-21 07:58:12 +02:00
parent 4d32e57947
commit 16ed91b147
2 changed files with 3 additions and 3 deletions

View File

@@ -210,7 +210,7 @@ class JsonLinesDatastore {
async getRows(offset, limit, filter, sort) {
const res = [];
if (sort && !this.sortedFiles[stableStringify(sort)]) {
const jslid = uuidv1();
const jslid = crypto.randomUUID();
const sortedFile = path.join(jsldir(), `${jslid}.jsonl`);
await JsonLinesDatastore.sortFile(this.file, sortedFile, sort);
this.sortedFiles[stableStringify(sort)] = sortedFile;