Fix error log resolve

logging/entry/<entryId>/attr/Resolved is a boolean as such
send true when resolving.

Before the function was always returning successful, fixed this
and log to the console when it fails.

Tested: Resolved multiple error logs and see the fail in the
        console on a fail.
Change-Id: I60496f30f9241ffb6b6b73cf87b7481bea10b24f
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 89b2c71..840db8e 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -1707,13 +1707,8 @@
           return defer.promise;
         },
         resolveLogs: function(logs) {
-          var defer = $q.defer();
           var promises = [];
 
-          function finished() {
-            defer.resolve();
-          }
-
           logs.forEach(function(item) {
             promises.push($http({
               method: 'PUT',
@@ -1721,13 +1716,10 @@
                   '/xyz/openbmc_project/logging/entry/' + item.Id +
                   '/attr/Resolved',
               withCredentials: true,
-              data: JSON.stringify({'data': '1'})
+              data: JSON.stringify({'data': true})
             }));
           });
-
-          $q.all(promises).then(finished);
-
-          return defer.promise;
+          return $q.all(promises);
         },
         getPowerConsumption: function() {
           return $http({