fix(xo-server/xosan): make tmpBoundObjectId unique (#2760)

Fixes #2758
This commit is contained in:
Pierre Donias 2018-03-13 16:05:38 +01:00 committed by Julien Fontanet
parent c239b518e0
commit 35f210e074

View File

@ -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,
})