Handle promise linting (#5488)

This commit is contained in:
Tom Moor
2023-06-28 20:18:18 -04:00
committed by GitHub
parent f3d8129a13
commit 89d5527d39
101 changed files with 395 additions and 343 deletions

View File

@@ -380,9 +380,9 @@ class WebsocketProvider extends React.Component<Props> {
// if the user is us then we go ahead and load the collection from API.
this.socket.on(
"collections.add_user",
action((event: WebsocketCollectionUserEvent) => {
async (event: WebsocketCollectionUserEvent) => {
if (auth.user && event.userId === auth.user.id) {
collections.fetch(event.collectionId, {
await collections.fetch(event.collectionId, {
force: true,
});
}
@@ -391,7 +391,7 @@ class WebsocketProvider extends React.Component<Props> {
documents.inCollection(event.collectionId).forEach((document) => {
policies.remove(document.id);
});
})
}
);
// received when a user is removed from having access to a collection