Skip to content

Commit

Permalink
MSTR-283: Remove metadata from the payload when saving to phone_numbe…
Browse files Browse the repository at this point in the history
…rs (#1161)
  • Loading branch information
pcandia committed May 1, 2024
1 parent ff11d12 commit 05e3a76
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/common/submodules/callerId/callerId.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ define(function(require) {
// The back-end doesn't let us set features anymore, they return
// the field based on the key set on that document.
delete args.data.data.features;
delete args.data.data.metadata;

self.callApi({
resource: 'numbers.update',
Expand Down
1 change: 1 addition & 0 deletions src/apps/common/submodules/e911/e911.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ define(function(require) {

// The back-end doesn't let us set features anymore, they return the field based on the key set on that document.
delete data.features;
delete data.metadata;

self.callApi({
resource: 'numbers.update',
Expand Down
1 change: 1 addition & 0 deletions src/apps/common/submodules/failover/failover.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ define(function(require) {

// The back-end doesn't let us set features anymore, they return the field based on the key set on that document.
delete data.features;
delete data.metadata;

self.callApi({
resource: 'numbers.update',
Expand Down
1 change: 1 addition & 0 deletions src/apps/common/submodules/numberPrepend/numberPrepend.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ define(function(require) {

// The back-end doesn't let us set features anymore, they return the field based on the key set on that document.
delete data.features;
delete data.metadata;

self.callApi({
resource: 'numbers.update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ define(function(require) {

// The back-end doesn't let us set features anymore, they return the field based on the key set on that document.
delete data.features;
delete data.metadata;

self.callApi({
resource: 'numbers.update',
Expand Down

0 comments on commit 05e3a76

Please sign in to comment.