1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

chore: better uuid name

This commit is contained in:
Christopher Kolstad 2021-02-19 11:28:35 +01:00
parent ba57822d23
commit 7ee36d2aea
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A

View File

@ -1,9 +1,9 @@
'use strict'; 'use strict';
const { v4 } = require('uuid'); const { v4: uuidv4 } = require('uuid');
exports.up = function(db, cb) { exports.up = function(db, cb) {
const instanceId = v4(); const instanceId = uuidv4();
db.runSql( db.runSql(
` `
INSERT INTO settings(name, content) VALUES ('instanceInfo', json_build_object('id', '${instanceId}')); INSERT INTO settings(name, content) VALUES ('instanceInfo', json_build_object('id', '${instanceId}'));