Skip to content

Commit

Permalink
bugfix: allow editServiceSubscription without overwriting tags (razee…
Browse files Browse the repository at this point in the history
…-io#1334)

* bugfix: allow editServiceSubscription without overwriting tags

* fix package-lock
  • Loading branch information
carrolp authored Jun 22, 2023
1 parent 266402f commit 59039fd
Show file tree
Hide file tree
Showing 3 changed files with 884 additions and 831 deletions.
2 changes: 1 addition & 1 deletion app/apollo/resolvers/serviceSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const serviceResolvers = {
validateName( 'name', name );
validateString( 'channelUuid', channelUuid );
validateString( 'versionUuid', versionUuid );
tags.forEach( value => { validateString( 'tags', value ); } );
if( tags ) tags.forEach( value => { validateString( 'tags', value ); } );

const serviceSubscription = await models.ServiceSubscription.findOne({ _id: ssid, org_id: orgId }).lean({ virtuals: true });
if (!serviceSubscription) {
Expand Down
14 changes: 14 additions & 0 deletions audit-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"low": true,
"_allowlistInfo": "none",
"allowlist": [
{
"GHSA-gpv5-7x3g-ghjv": {
"active": true,
"notes": "no fix available as of 20230622",
"expiry": "2023-06-26"
}
},
{
"GHSA-c2qf-rxjj-qqgw": {
"active": true,
"notes": "no fix available as of 20230622",
"expiry": "2023-06-26"
}
}
],
"skip-dev": true
}
Loading

0 comments on commit 59039fd

Please sign in to comment.