mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fixed regression #819
This commit is contained in:
parent
4d32e57947
commit
16ed91b147
@ -149,7 +149,7 @@ module.exports = {
|
|||||||
const { sesid } = await this.create({ conid, database });
|
const { sesid } = await this.create({ conid, database });
|
||||||
const session = this.opened.find(x => x.sesid == sesid);
|
const session = this.opened.find(x => x.sesid == sesid);
|
||||||
session.killOnDone = true;
|
session.killOnDone = true;
|
||||||
const jslid = uuidv1();
|
const jslid = crypto.randomUUID();
|
||||||
session.loadingReader_jslid = jslid;
|
session.loadingReader_jslid = jslid;
|
||||||
const fileName = queryName && appFolder ? path.join(appdir(), appFolder, `${queryName}.query.sql`) : null;
|
const fileName = queryName && appFolder ? path.join(appdir(), appFolder, `${queryName}.query.sql`) : null;
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ module.exports = {
|
|||||||
|
|
||||||
startProfiler_meta: true,
|
startProfiler_meta: true,
|
||||||
async startProfiler({ sesid }) {
|
async startProfiler({ sesid }) {
|
||||||
const jslid = uuidv1();
|
const jslid = crypto.randomUUID();
|
||||||
const session = this.opened.find(x => x.sesid == sesid);
|
const session = this.opened.find(x => x.sesid == sesid);
|
||||||
if (!session) {
|
if (!session) {
|
||||||
throw new Error('Invalid session');
|
throw new Error('Invalid session');
|
||||||
|
@ -210,7 +210,7 @@ class JsonLinesDatastore {
|
|||||||
async getRows(offset, limit, filter, sort) {
|
async getRows(offset, limit, filter, sort) {
|
||||||
const res = [];
|
const res = [];
|
||||||
if (sort && !this.sortedFiles[stableStringify(sort)]) {
|
if (sort && !this.sortedFiles[stableStringify(sort)]) {
|
||||||
const jslid = uuidv1();
|
const jslid = crypto.randomUUID();
|
||||||
const sortedFile = path.join(jsldir(), `${jslid}.jsonl`);
|
const sortedFile = path.join(jsldir(), `${jslid}.jsonl`);
|
||||||
await JsonLinesDatastore.sortFile(this.file, sortedFile, sort);
|
await JsonLinesDatastore.sortFile(this.file, sortedFile, sort);
|
||||||
this.sortedFiles[stableStringify(sort)] = sortedFile;
|
this.sortedFiles[stableStringify(sort)] = sortedFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user