Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
Giems committed Sep 9, 2024
1 parent 76d4b7e commit 627d64e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/bindings/TeamInvite.ts
Original file line number Diff line number Diff line change
@@ -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, }
export interface TeamInvite { teamId: string, creatorEmail: string, teamName: string, userEmail: string, createdAt: string, }
2 changes: 1 addition & 1 deletion server/bindings/TeamInvite.ts
Original file line number Diff line number Diff line change
@@ -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, }
export interface TeamInvite { teamId: string, creatorEmail: string, teamName: string, userEmail: string, createdAt: string, }
2 changes: 2 additions & 0 deletions server/src/structs/cloud/team_invite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -15,6 +16,7 @@ pub struct TeamInvite {
impl From<DbTeamInvite> 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,
Expand Down

0 comments on commit 627d64e

Please sign in to comment.