@dmptool/utils 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maDMP.js +2 -4
- package/package.json +1 -1
package/dist/maDMP.js
CHANGED
|
@@ -116,7 +116,7 @@ const loadDefaultMemberRole = async (rdsConnectionParams) => {
|
|
|
116
116
|
rdsConnectionParams.logger.debug({ sql }, 'Fetching default role');
|
|
117
117
|
const resp = await (0, rds_1.queryTable)(rdsConnectionParams, sql, []);
|
|
118
118
|
if (resp && Array.isArray(resp.results) && resp.results.length > 0) {
|
|
119
|
-
return resp.results[0].
|
|
119
|
+
return resp.results[0].uri;
|
|
120
120
|
}
|
|
121
121
|
return undefined;
|
|
122
122
|
};
|
|
@@ -488,9 +488,7 @@ const buildContributors = (applicationName, env, planId, projectId, members, def
|
|
|
488
488
|
}
|
|
489
489
|
return members.map((member) => {
|
|
490
490
|
// Make sure that we always have roles as an array
|
|
491
|
-
const roles = member.roles
|
|
492
|
-
? JSON.parse(member.roles)
|
|
493
|
-
: [defaultRole];
|
|
491
|
+
const roles = member.roles ? JSON.parse(member.roles) : [defaultRole];
|
|
494
492
|
// Combine the member's given name and surname into a single name'
|
|
495
493
|
const contrib = {
|
|
496
494
|
name: [member.givenName, member.surName]
|
package/package.json
CHANGED