Merge remote-tracking branch 'origin/feat/cloud-sync-saika' into feat/cloud-sync-saika

This commit is contained in:
alt0
2023-01-10 20:22:35 +08:00
4 changed files with 13 additions and 10 deletions
@@ -2,7 +2,6 @@ import { BaseProvider } from '../base.js';
import type {
ProviderConstructorParams,
CreateWorkspaceInfoParams,
UpdateWorkspaceMetaParams,
WorkspaceMeta0,
} from '../base';
import type { User } from '../../types';
@@ -34,11 +33,6 @@ export class AffineProvider extends BaseProvider {
constructor({ apis, ...params }: AffineProviderConstructorParams) {
super(params);
this._apis = apis || getApis();
this.init().then(() => {
if (this._apis.token.isLogin) {
this.loadWorkspaces();
}
});
}
override async init() {
@@ -20,7 +20,6 @@ export class LocalProvider extends BaseProvider {
constructor(params: ProviderConstructorParams) {
super(params);
this.loadWorkspaces();
}
private _storeWorkspaces(workspaces: WorkspaceMeta0[]) {