From 35f210e074077bcc4439dbfc4c0e339659e20570 Mon Sep 17 00:00:00 2001 From: Pierre Donias Date: Tue, 13 Mar 2018 16:05:38 +0100 Subject: [PATCH] fix(xo-server/xosan): make tmpBoundObjectId unique (#2760) Fixes #2758 --- packages/xo-server/src/api/xosan.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/xo-server/src/api/xosan.js b/packages/xo-server/src/api/xosan.js index 350b2c070..b7fd79347 100644 --- a/packages/xo-server/src/api/xosan.js +++ b/packages/xo-server/src/api/xosan.js @@ -665,7 +665,9 @@ export const createSR = defer(async function ( CURRENT_POOL_OPERATIONS[poolId] = { ...OPERATION_OBJECT, state: 0 } - const tmpBoundObjectId = srs.join(',') + const tmpBoundObjectId = `tmp_${srs.join(',')}_${Math.random() + .toString(32) + .slice(2)}` const license = await this.createBoundXosanTrialLicense({ boundObjectId: tmpBoundObjectId, })