mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
@ -6308,6 +6308,7 @@ func (q *FakeQuerier) UpdateWorkspaceAgentStartupByID(_ context.Context, arg dat
|
||||
}
|
||||
|
||||
agent.Version = arg.Version
|
||||
agent.APIVersion = arg.APIVersion
|
||||
agent.ExpandedDirectory = arg.ExpandedDirectory
|
||||
agent.Subsystems = arg.Subsystems
|
||||
q.workspaceAgents[index] = agent
|
||||
|
@ -8039,7 +8039,8 @@ UPDATE
|
||||
SET
|
||||
version = $2,
|
||||
expanded_directory = $3,
|
||||
subsystems = $4
|
||||
subsystems = $4,
|
||||
api_version = $5
|
||||
WHERE
|
||||
id = $1
|
||||
`
|
||||
@ -8049,6 +8050,7 @@ type UpdateWorkspaceAgentStartupByIDParams struct {
|
||||
Version string `db:"version" json:"version"`
|
||||
ExpandedDirectory string `db:"expanded_directory" json:"expanded_directory"`
|
||||
Subsystems []WorkspaceAgentSubsystem `db:"subsystems" json:"subsystems"`
|
||||
APIVersion string `db:"api_version" json:"api_version"`
|
||||
}
|
||||
|
||||
func (q *sqlQuerier) UpdateWorkspaceAgentStartupByID(ctx context.Context, arg UpdateWorkspaceAgentStartupByIDParams) error {
|
||||
@ -8057,6 +8059,7 @@ func (q *sqlQuerier) UpdateWorkspaceAgentStartupByID(ctx context.Context, arg Up
|
||||
arg.Version,
|
||||
arg.ExpandedDirectory,
|
||||
pq.Array(arg.Subsystems),
|
||||
arg.APIVersion,
|
||||
)
|
||||
return err
|
||||
}
|
||||
|
@ -69,7 +69,8 @@ UPDATE
|
||||
SET
|
||||
version = $2,
|
||||
expanded_directory = $3,
|
||||
subsystems = $4
|
||||
subsystems = $4,
|
||||
api_version = $5
|
||||
WHERE
|
||||
id = $1;
|
||||
|
||||
|
Reference in New Issue
Block a user