diff --git a/src/libs/actions/OnyxUpdates.js b/src/libs/actions/OnyxUpdates.js index 6c210f1abadc..5c4d3bf93a65 100644 --- a/src/libs/actions/OnyxUpdates.js +++ b/src/libs/actions/OnyxUpdates.js @@ -42,7 +42,7 @@ function applyHTTPSOnyxUpdates(request, response) { }) .then(() => { console.debug('[OnyxUpdateManager] Done applying HTTPS update'); - return response; + return Promise.resolve(response);; }); } @@ -68,7 +68,7 @@ function applyPusherOnyxUpdates(updates) { * @returns {Promise} */ function apply({lastUpdateID, type, request, response, updates}) { - console.debug(`[OnyxUpdateManager] Applying update type: ${type} with lastUpdateID: ${lastUpdateID}`, data); + console.debug(`[OnyxUpdateManager] Applying update type: ${type} with lastUpdateID: ${lastUpdateID}`, { request, response, updates } ); if (lastUpdateID && lastUpdateID < lastUpdateIDAppliedToClient) { console.debug('[OnyxUpdateManager] Update received was older than current state, returning without applying the updates');