mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 22:07:09 +08:00
fix: user_id is string now
This commit is contained in:
@@ -121,6 +121,7 @@ export class TauriIPCProvider extends LocalProvider {
|
||||
): Promise<WorkspaceUnit | undefined> {
|
||||
this._logger('Creating client app workspace');
|
||||
assert(this.#ipc);
|
||||
assert(this.#userID);
|
||||
const { id } = await this.#ipc.createWorkspace({
|
||||
name: meta.name,
|
||||
// TODO: get userID here
|
||||
@@ -151,6 +152,7 @@ export class TauriIPCProvider extends LocalProvider {
|
||||
|
||||
override async loadWorkspaces(): Promise<WorkspaceUnit[]> {
|
||||
assert(this.#ipc);
|
||||
assert(this.#userID);
|
||||
const { workspaces } = await this.#ipc.getWorkspaces({
|
||||
user_id: this.#userID,
|
||||
});
|
||||
|
||||
@@ -83,8 +83,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -34,7 +34,7 @@ export interface CreateWorkspace {
|
||||
* only set name, avatar is update in datacenter to yDoc directly
|
||||
*/
|
||||
name: string;
|
||||
user_id: number;
|
||||
user_id: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface GetWorkspace {
|
||||
|
||||
Reference in New Issue
Block a user