Fix SQL issue in tenant/user removal
@@ -74,9 +74,9 @@ func (db *DB) AddUserToTenant(user, tenant, role string) error {
func (db *DB) RemoveUserFromTenant(user, tenant string) error {
return db.Exec(`
- DELETE FROM memberships m
- WHERE m.user_uuid = ?
- AND m.tenant_uuid = ?`, user, tenant)
+ DELETE FROM memberships
+ WHERE user_uuid = ?
+ AND tenant_uuid = ?`, user, tenant)
}
//GetTenantsForUser given a user's uuid returns a slice of Tenants that the user has membership with
