Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "updateObject should not return the CRDT"

Merged Yannick Li requested to merge 62-updateobject-should-not-return-the-crdt into dev
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -148,7 +148,7 @@ export default class PouchDBDataSource implements DataSource {
newDocument._rev = body._rev;
return this.database
.put(newDocument)
.then(() => newDocument)
.then(() => "OK")
.catch((error) => this.updateObject(docName, document));
} catch (error) {
return Promise.reject(error);
@@ -160,7 +160,7 @@ export default class PouchDBDataSource implements DataSource {
newDocument._id = docName;
return this.database
.put(newDocument)
.then(() => newDocument)
.then(() => "OK")
.catch((error) => this.updateObject(docName, document));
} catch (error) {
return Promise.reject(error);
Loading