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

@ -149,7 +149,7 @@ module.exports = {
const { sesid } = await this.create({ conid, database });
const session = this.opened.find(x => x.sesid == sesid);
session.killOnDone = true;
const jslid = uuidv1();
const jslid = crypto.randomUUID();
session.loadingReader_jslid = jslid;
const fileName = queryName && appFolder ? path.join(appdir(), appFolder, `${queryName}.query.sql`) : null;
@ -169,7 +169,7 @@ module.exports = {
startProfiler_meta: true,
async startProfiler({ sesid }) {
const jslid = uuidv1();
const jslid = crypto.randomUUID();
const session = this.opened.find(x => x.sesid == sesid);
if (!session) {
throw new Error('Invalid session');

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;