Skip to content

Commit 7cf6f0c

Browse files
committed
Fix SQL query
1 parent 92dedad commit 7cf6f0c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaceagents.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ WITH new_length AS (
151151
logs_length = logs_length + @output_length WHERE workspace_agents.id = @agent_id
152152
)
153153
INSERT INTO
154-
workspace_agent_logs (agent_id, created_at, output, level, source)
154+
workspace_agent_logs (agent_id, created_at, output, level, log_source_id)
155155
SELECT
156156
@agent_id :: uuid AS agent_id,
157157
unnest(@created_at :: timestamptz [ ]) AS created_at,

coderd/workspaceagents.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,7 @@ func convertWorkspaceAgent(derpMap *tailcfg.DERPMap, coordinator tailnet.Coordin
13791379
Scripts: scripts,
13801380
LogsLength: dbAgent.LogsLength,
13811381
LogsOverflowed: dbAgent.LogsOverflowed,
1382+
LogSources: logSources,
13821383
Version: dbAgent.Version,
13831384
EnvironmentVariables: envs,
13841385
Directory: dbAgent.Directory,

0 commit comments

Comments
 (0)