Skip to content

Commit

Permalink
Correcting issue with removal of backticks
Browse files Browse the repository at this point in the history
Reverting 8bc29f1.
  • Loading branch information
brian-learningpool committed Apr 29, 2016
1 parent 0d8c6c9 commit f87cf3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/usermanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ exports = module.exports = {
// Create a new tenant (if required)
if (!profile.hasOwnProperty('_tenantId') || profile._tenantId == UNDEFINED_TENANT_ID) {
// Formulate a unique tenant name.
var tenantName = '${profile.auth}-${newUser._id}';
var tenantName = `${profile.auth}-${newUser._id}`;

// Setup a new tenant for the new user.
tenantmanager.createTenant({name: tenantName}, function(err, tenant) {
Expand Down Expand Up @@ -425,7 +425,7 @@ exports = module.exports = {
}

if (!tenant) {
logger.log('error', 'Unable to retrieve tenant ${data._tenantId} for user ${data._id}');
logger.log('error', `Unable to retrieve tenant ${data._tenantId} for user ${data._id}`);
return cb(new Error('Unable to retrieve tenant for user'));
}

Expand Down

0 comments on commit f87cf3c

Please sign in to comment.