Skip to content

Commit

Permalink
Change 'Documents' from plural to singular in DocEvent (#616)
Browse files Browse the repository at this point in the history
* Change 'Documents' from plural to singular in DocEvent

* Specify event triggerd in applyChanges
  • Loading branch information
chacha912 authored Aug 18, 2023
1 parent 609641d commit c9d50cb
Show file tree
Hide file tree
Showing 9 changed files with 393 additions and 716 deletions.
2 changes: 1 addition & 1 deletion public/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const network = {
(event.type == 'stream-connection-status-changed' &&
event.value == 'connected') ||
(event.type == 'document-sync-result' && event.value == 'synced') ||
event.type == 'documents-changed')
event.type == 'document-changed')
) {
network.showOnline(elem);
}
Expand Down
6 changes: 3 additions & 3 deletions src/api/yorkie/v1/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ enum ValueType {
}

enum DocEventType {
DOC_EVENT_TYPE_DOCUMENTS_CHANGED = 0;
DOC_EVENT_TYPE_DOCUMENTS_WATCHED = 1;
DOC_EVENT_TYPE_DOCUMENTS_UNWATCHED = 2;
DOC_EVENT_TYPE_DOCUMENT_CHANGED = 0;
DOC_EVENT_TYPE_DOCUMENT_WATCHED = 1;
DOC_EVENT_TYPE_DOCUMENT_UNWATCHED = 2;
}

message DocEvent {
Expand Down
Loading

0 comments on commit c9d50cb

Please sign in to comment.