mirror of
https://github.com/aykhans/slash-e.git
synced 2025-09-05 16:54:18 +00:00
chore: fix golangci error
This commit is contained in:
@@ -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}
|
||||||
|
Reference in New Issue
Block a user