Skip to content

Commit

Permalink
Another litle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddenchaux committed Aug 11, 2018
1 parent 7b493a7 commit 9adbb02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/model/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export default class Model extends BaseModel {
const _conf = this.checkMethodConf('create', conf)
let dataOutput
if (_conf.remote) {
_conf.http!.data = data;
dataOutput = await this.httpRequest(_conf)

if (_conf.localSync) {
Expand Down Expand Up @@ -267,6 +268,7 @@ export default class Model extends BaseModel {
const _conf = this.checkMethodConf('update', conf)
let dataOutput
if (_conf.remote) {
_conf.http!.data = data;
dataOutput = await this.httpRequest(_conf, {'id': id.toString()})

if (_conf.localSync && dataOutput) {
Expand Down

0 comments on commit 9adbb02

Please sign in to comment.