Fix team member splits being set to 0 by default (#490)

This commit is contained in:
Geometrically
2022-12-02 09:32:17 -08:00
committed by GitHub
parent 820519b4f7
commit c34e2ab3e1
3 changed files with 23 additions and 21 deletions

View File

@@ -49,8 +49,8 @@ impl TeamBuilder {
sqlx::query!(
"
INSERT INTO team_members (id, team_id, user_id, role, permissions, accepted)
VALUES ($1, $2, $3, $4, $5, $6)
INSERT INTO team_members (id, team_id, user_id, role, permissions, accepted, payouts_split)
VALUES ($1, $2, $3, $4, $5, $6, $7)
",
team_member.id as TeamMemberId,
team_member.team_id as TeamId,
@@ -58,6 +58,7 @@ impl TeamBuilder {
team_member.role,
team_member.permissions.bits() as i64,
team_member.accepted,
team_member.payouts_split,
)
.execute(&mut *transaction)
.await?;