Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 610f561

Browse files
author
Nick Litwin
committed
Wrap submission posts and puts in param
1 parent f0e1acf commit 610f561

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/services/api.service.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@
9393
param: element
9494
};
9595
}
96+
97+
if (url.indexOf('submissions') > -1 && (operation.toLowerCase() === 'put' || operation.toLowerCase() === 'post')) {
98+
return {
99+
param: element
100+
};
101+
}
102+
96103
return element;
97104
})
98105
.addResponseInterceptor(function(data, operation, what, url, response, deferred) {

0 commit comments

Comments
 (0)