mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
removed uuid dependency from api package
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
const AsyncLock = require('async-lock');
|
||||
const fs = require('fs-extra');
|
||||
const uuidv1 = require('uuid/v1');
|
||||
|
||||
const lock = new AsyncLock();
|
||||
|
||||
@@ -57,7 +56,7 @@ class JsonLinesDatabase {
|
||||
? obj
|
||||
: {
|
||||
...obj,
|
||||
_id: uuidv1(),
|
||||
_id: crypto.randomUUID(),
|
||||
};
|
||||
this.data.push(elem);
|
||||
await this._save();
|
||||
|
||||
Reference in New Issue
Block a user