mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
fix: lint error and build error
This commit is contained in:
@@ -212,6 +212,7 @@ export class AffineProvider extends BaseProvider {
|
||||
}
|
||||
|
||||
public override async getUserInfo(): Promise<User | undefined> {
|
||||
await this.init();
|
||||
const user = this._apis.token.user;
|
||||
return user
|
||||
? {
|
||||
|
||||
@@ -84,7 +84,10 @@ export interface CreateWorkspaceParams {
|
||||
export async function createWorkspace(
|
||||
params: CreateWorkspaceParams
|
||||
): Promise<{ id: string }> {
|
||||
return client.post('api/workspace', { json: params }).json();
|
||||
// FIXME: avatar should be optional
|
||||
return client
|
||||
.post('api/workspace', { json: { ...params, avatar: '123' } })
|
||||
.json();
|
||||
}
|
||||
|
||||
export interface UpdateWorkspaceParams {
|
||||
|
||||
Reference in New Issue
Block a user