Skip to content

Commit c6d462f

Browse files
committed
chore(build)
1 parent e432e71 commit c6d462f

File tree

5 files changed

+79
-66
lines changed

5 files changed

+79
-66
lines changed

dist/forms-angular.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ declare module fng.services {
291291
};
292292
}
293293
declare module fng.services {
294-
function SubmissionsService($http: any): {
294+
function SubmissionsService($http: any, $cacheFactory: any): {
295295
getListAttributes: (ref: any, id: any) => any;
296296
readRecord: (modelName: any, id: any) => any;
297-
getAll: (modelName: any) => any;
297+
getAll: (modelName: any, _options: any) => any;
298298
getPagedAndFilteredList: (modelName: any, options: any) => any;
299299
deleteRecord: (model: any, id: any) => any;
300300
updateRecord: (modelName: any, id: any, dataToSave: any) => any;

dist/forms-angular.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,7 @@ var fng;
34013401
var services;
34023402
(function (services) {
34033403
/*@ngInject*/
3404-
function SubmissionsService($http) {
3404+
function SubmissionsService($http, $cacheFactory) {
34053405
/*
34063406
generate a query string for a filtered and paginated query for submissions.
34073407
options consists of the following:
@@ -3443,8 +3443,11 @@ var fng;
34433443
readRecord: function (modelName, id) {
34443444
return $http.get('/api/' + modelName + '/' + id);
34453445
},
3446-
getAll: function (modelName) {
3447-
return $http.get('/api/' + modelName, { cache: true });
3446+
getAll: function (modelName, _options) {
3447+
var options = angular.extend({
3448+
cache: true
3449+
}, _options);
3450+
return $http.get('/api/' + modelName, options);
34483451
},
34493452
getPagedAndFilteredList: function (modelName, options) {
34503453
return $http.get('/api/' + modelName + generateListQuery(options));
@@ -3453,14 +3456,16 @@ var fng;
34533456
return $http.delete('/api/' + model + '/' + id);
34543457
},
34553458
updateRecord: function (modelName, id, dataToSave) {
3459+
$cacheFactory.get('$http').remove('/api/' + modelName);
34563460
return $http.post('/api/' + modelName + '/' + id, dataToSave);
34573461
},
34583462
createRecord: function (modelName, dataToSave) {
3463+
$cacheFactory.get('$http').remove('/api/' + modelName);
34593464
return $http.post('/api/' + modelName, dataToSave);
34603465
}
34613466
};
34623467
}
3463-
SubmissionsService.$inject = ["$http"];
3468+
SubmissionsService.$inject = ["$http", "$cacheFactory"];
34643469
services.SubmissionsService = SubmissionsService;
34653470
})(services = fng.services || (fng.services = {}));
34663471
})(fng || (fng = {}));

dist/forms-angular.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/services/add-all.js

Lines changed: 66 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)