Skip to content

Commit

Permalink
feat(gDriveSync): better error case handling
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Mar 11, 2018
1 parent 52722c7 commit eeefbff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app-src/scripts/main/global-services/google-drive-sync-s.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@
editable: true
})
.then((res) => {
console.log(res);
//this.config.syncFileName
this.data.backupDocId = res.data.id;
this.data.lastSyncToRemote = res.data.modifiedDate;
// also needs to be updated
Expand Down Expand Up @@ -339,7 +337,7 @@
this._load().then((loadRes) => {
this._import(loadRes);
defer.resolve(loadRes);
});
}, defer.reject);
} else {
this._load().then((loadRes) => {
const lastModifiedRemote = loadRes.meta.modifiedDate;
Expand All @@ -348,7 +346,7 @@
this._import(loadRes);
defer.resolve(loadRes);
}, defer.reject);
});
}, defer.reject);
}

return defer.promise;
Expand Down

0 comments on commit eeefbff

Please sign in to comment.