Pass logType and SinceDate as an array of key value pairs and not an array of a single dictionary - the logapi was never meant to be able to receive a dictionary... see comments on http://issues.umbraco.org/issue/U4-9489 for details

This commit is contained in:
Marc Goodson
2017-06-02 21:02:46 +01:00
parent 78bc38fe1b
commit 079df4a8b7

View File

@@ -67,7 +67,7 @@ function logResource($q, $http, umbRequestHelper) {
umbRequestHelper.getApiUrl(
"logApiBaseUrl",
"GetCurrentUserLog",
[{ logtype: type, sinceDate: since }])),
[{ logtype: type}, {sinceDate: since }])),
'Failed to retrieve log data for current user of type ' + type + ' since ' + since);
},
@@ -98,7 +98,7 @@ function logResource($q, $http, umbRequestHelper) {
umbRequestHelper.getApiUrl(
"logApiBaseUrl",
"GetLog",
[{ logtype: type, sinceDate: since }])),
[{ logtype: type}, {sinceDate: since }])),
'Failed to retrieve log data of type ' + type + ' since ' + since);
}
};