Handle promise linting (#5488)
This commit is contained in:
@@ -111,7 +111,7 @@ export default class AuthStore {
|
||||
// we are signed in and the received data contains no user then sign out
|
||||
if (this.authenticated) {
|
||||
if (data.user === null) {
|
||||
this.logout();
|
||||
void this.logout();
|
||||
}
|
||||
} else {
|
||||
this.rehydrate(data);
|
||||
@@ -348,7 +348,7 @@ export default class AuthStore {
|
||||
this.token = null;
|
||||
|
||||
// Tell the host application we logged out, if any – allows window cleanup.
|
||||
Desktop.bridge?.onLogout?.();
|
||||
void Desktop.bridge?.onLogout?.();
|
||||
this.rootStore.logout();
|
||||
|
||||
try {
|
||||
|
||||
@@ -232,8 +232,8 @@ export default class CollectionsStore extends BaseStore<Collection> {
|
||||
|
||||
delete = async (collection: Collection) => {
|
||||
await super.delete(collection);
|
||||
this.rootStore.documents.fetchRecentlyUpdated();
|
||||
this.rootStore.documents.fetchRecentlyViewed();
|
||||
await this.rootStore.documents.fetchRecentlyUpdated();
|
||||
await this.rootStore.documents.fetchRecentlyViewed();
|
||||
};
|
||||
|
||||
export = (format: FileOperationFormat, includeAttachments: boolean) =>
|
||||
|
||||
@@ -179,7 +179,7 @@ export default class UsersStore extends BaseStore<User> {
|
||||
|
||||
@action
|
||||
async delete(user: User, options: Record<string, any> = {}) {
|
||||
super.delete(user, options);
|
||||
await super.delete(user, options);
|
||||
|
||||
if (!user.isSuspended && user.lastActiveAt) {
|
||||
this.counts.active -= 1;
|
||||
|
||||
Reference in New Issue
Block a user