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

This commit is contained in:
Geometrically authored and GitHub committed 2022-12-02 10:32:17 -07:00
1 parent 820519b4f7
commit c34e2ab3e1
3 files changed
+23 -21

No files matched your search

+3 -2
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?;