mirror of
https://github.com/aykhans/slash-e.git
synced 2025-06-06 08:46:46 +00:00
chore: fix golangci error
This commit is contained in:
parent
44025738fa
commit
a7fb8fedd6
@ -132,13 +132,10 @@ func (s *Store) DeleteWorkspaceUser(ctx context.Context, delete *api.WorkspaceUs
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := tx.Commit(); err != nil {
|
err = tx.Commit()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func upsertWorkspaceUser(ctx context.Context, tx *sql.Tx, upsert *api.WorkspaceUserUpsert) (*workspaceUserRaw, error) {
|
func upsertWorkspaceUser(ctx context.Context, tx *sql.Tx, upsert *api.WorkspaceUserUpsert) (*workspaceUserRaw, error) {
|
||||||
set := []string{"workspace_id", "user_id", "role"}
|
set := []string{"workspace_id", "user_id", "role"}
|
||||||
args := []interface{}{upsert.WorkspaceID, upsert.UserID, upsert.Role}
|
args := []interface{}{upsert.WorkspaceID, upsert.UserID, upsert.Role}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user