Skip to content

Commit

Permalink
feat(resource-binding): change update_cell to update_cells
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Jan 18, 2023
1 parent a5f25f5 commit b12a177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/models/src/resource-binding/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Manager extends Actor<object, MessagePayload<ResourceBindingManager
this.#registryOutpoint.set(outPointToOutPointString(outPoint), store)
}
}
this.sendMessage(store, 'update_cell', upgrade)
this.sendMessage(store, 'update_cells', upgrade)

this.sendMessage(
store,
Expand Down Expand Up @@ -164,13 +164,13 @@ export class Manager extends Actor<object, MessagePayload<ResourceBindingManager
return { subscription: this._listener.on(this.onListenBlock), updator: this.update(pollingInterval) }
}

private sendMessage(store: ResourceBindingRegistry, type: 'remove_cell' | 'update_cell', payload: object) {
private sendMessage(store: ResourceBindingRegistry, type: 'remove_cell' | 'update_cells', payload: object) {
this.call(store.uri, {
pattern: store.pattern,
value: {
type,
remove: type == 'remove_cell' ? payload : undefined,
update: type == 'update_cell' ? payload : undefined,
update: type == 'update_cells' ? payload : undefined,
},
})
}
Expand Down

0 comments on commit b12a177

Please sign in to comment.