remove members from organizations (#537)

This commit is contained in:
Michael Quigley
2024-12-09 15:04:43 -05:00
parent 84c4611d2d
commit 52333ddb69
3 changed files with 54 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (str *Store) IsAccountAdminOfOrganization(acctId, orgId int, trx *sqlx.Tx)
}
func (str *Store) RemoveAccountFromOrganization(acctId, orgId int, trx *sqlx.Tx) error {
stmt, err := trx.Prepare("delete from organization_members where organization_id = $1 and account_id = $2")
stmt, err := trx.Prepare("delete from organization_members where account_id = $1 and organization_id = $2")
if err != nil {
return errors.Wrap(err, "error preparing organization_members delete statement")
}