mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix: deepscan error and warning (#728)
This commit is contained in:
@@ -244,9 +244,7 @@ export class AffineProvider extends BaseProvider {
|
||||
}
|
||||
|
||||
public override async getUserInfo(): Promise<User | undefined> {
|
||||
await this.init();
|
||||
const user = this._apis.token.user;
|
||||
await this.init;
|
||||
return user
|
||||
? {
|
||||
id: user.id,
|
||||
|
||||
@@ -52,7 +52,7 @@ export class WorkspaceUnit {
|
||||
}
|
||||
|
||||
setBlocksuiteWorkspace(blocksuiteWorkspace: BlocksuiteWorkspace | null) {
|
||||
if (blocksuiteWorkspace && blocksuiteWorkspace?.room !== this.id) {
|
||||
if (blocksuiteWorkspace && blocksuiteWorkspace.room !== this.id) {
|
||||
throw new Error('Workspace id inconsistent.');
|
||||
}
|
||||
this._blocksuiteWorkspace = blocksuiteWorkspace;
|
||||
|
||||
Reference in New Issue
Block a user