From 627d64e98b6b67a096c416ecbb42527723b0b1fd Mon Sep 17 00:00:00 2001 From: Giems <109511301+Giems@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:07:33 +0200 Subject: [PATCH] fix type --- sdk/bindings/TeamInvite.ts | 2 +- server/bindings/TeamInvite.ts | 2 +- server/src/structs/cloud/team_invite.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/bindings/TeamInvite.ts b/sdk/bindings/TeamInvite.ts index ae35f807..c926ac10 100644 --- a/sdk/bindings/TeamInvite.ts +++ b/sdk/bindings/TeamInvite.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export interface TeamInvite { creatorEmail: string, teamName: string, userEmail: string, createdAt: string, } \ No newline at end of file +export interface TeamInvite { teamId: string, creatorEmail: string, teamName: string, userEmail: string, createdAt: string, } \ No newline at end of file diff --git a/server/bindings/TeamInvite.ts b/server/bindings/TeamInvite.ts index ae35f807..c926ac10 100644 --- a/server/bindings/TeamInvite.ts +++ b/server/bindings/TeamInvite.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export interface TeamInvite { creatorEmail: string, teamName: string, userEmail: string, createdAt: string, } \ No newline at end of file +export interface TeamInvite { teamId: string, creatorEmail: string, teamName: string, userEmail: string, createdAt: string, } \ No newline at end of file diff --git a/server/src/structs/cloud/team_invite.rs b/server/src/structs/cloud/team_invite.rs index fbc84441..8c6d4ca8 100644 --- a/server/src/structs/cloud/team_invite.rs +++ b/server/src/structs/cloud/team_invite.rs @@ -6,6 +6,7 @@ use ts_rs::TS; #[ts(export)] #[serde(rename_all = "camelCase")] pub struct TeamInvite { + pub team_id: String, pub creator_email: String, pub team_name: String, pub user_email: String, @@ -15,6 +16,7 @@ pub struct TeamInvite { impl From for TeamInvite { fn from(db_team_invite: DbTeamInvite) -> Self { Self { + team_id: db_team_invite.team_id, creator_email: db_team_invite.admin_email, team_name: db_team_invite.team_name, user_email: db_team_invite.user_email,