remove uuid module
built into node.js now
This commit is contained in:
@@ -155,6 +155,7 @@ const appTaskManager = require('./apptaskmanager.js'),
|
||||
backupTargets = require('./backuptargets.js'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
constants = require('./constants.js'),
|
||||
crypto = require('crypto'),
|
||||
{ CronTime } = require('cron'),
|
||||
dashboard = require('./dashboard.js'),
|
||||
database = require('./database.js'),
|
||||
@@ -186,7 +187,6 @@ const appTaskManager = require('./apptaskmanager.js'),
|
||||
TransformStream = require('stream').Transform,
|
||||
users = require('./users.js'),
|
||||
util = require('util'),
|
||||
uuid = require('uuid'),
|
||||
volumes = require('./volumes.js'),
|
||||
_ = require('./underscore.js');
|
||||
|
||||
@@ -1479,7 +1479,7 @@ async function install(data, auditSource) {
|
||||
|
||||
if (constants.DEMO && (await getCount() >= constants.DEMO_APP_LIMIT)) throw new BoxError(BoxError.BAD_STATE, 'Too many installed apps, please uninstall a few and try again');
|
||||
|
||||
const appId = uuid.v4();
|
||||
const appId = crypto.randomUUID();
|
||||
debug(`Installing app ${appId}`);
|
||||
|
||||
const app = {
|
||||
@@ -2457,7 +2457,7 @@ async function clone(app, data, user, auditSource) {
|
||||
const mailboxName = manifest.addons?.sendmail ? mailboxNameForSubdomain(subdomain, manifest) : null;
|
||||
const mailboxDomain = manifest.addons?.sendmail ? domain : null;
|
||||
|
||||
const newAppId = uuid.v4();
|
||||
const newAppId = crypto.randomUUID();
|
||||
|
||||
// label, checklist intentionally omitted . icon is loaded in apptask from the backup
|
||||
const dolly = _.pick(backup.appConfig || app, ['memoryLimit', 'cpuQuota', 'crontab', 'reverseProxyConfig', 'env', 'servicesConfig', 'tags', 'devices',
|
||||
@@ -2533,7 +2533,7 @@ async function unarchive(archive, data, auditSource) {
|
||||
if (error) throw error;
|
||||
const portBindings = translateToPortBindings(data.ports || null, manifest);
|
||||
|
||||
const appId = uuid.v4();
|
||||
const appId = crypto.randomUUID();
|
||||
|
||||
// appConfig is null for pre-8.2 backups
|
||||
const dolly = _.pick(backup.appConfig || {}, ['memoryLimit', 'cpuQuota', 'crontab', 'reverseProxyConfig', 'env', 'servicesConfig',
|
||||
|
||||
Reference in New Issue
Block a user