Skip to content

Commit

Permalink
fix: Return result (Promise) un BaseCollectionStore::update
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
kachnitel committed Dec 8, 2019
1 parent 25a6a66 commit 2cade6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stores/BaseCollectionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export class BaseCollectionStore {
}
}

update = async (updatedEntity: BaseEntity) => {
update = (updatedEntity: BaseEntity) => {
let entity = this._findInCollection(updatedEntity.id)
entity.update(updatedEntity)
return entity.update(updatedEntity)
}

/**
Expand Down

0 comments on commit 2cade6a

Please sign in to comment.