Unified event name with the API

This commit is contained in:
Jori Lallo
2017-08-28 23:50:45 -07:00
parent c9e182376e
commit a1b239003c
4 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ class Collection extends BaseModel {
this.updateData(collection);
this.errors = stores.errors;
this.on('document.delete', (data: { collectionId: string }) => {
this.on('documents.delete', (data: { collectionId: string }) => {
if (data.collectionId === this.id) this.fetch();
});
}