Skip to content

Commit 1c6245d

Browse files
committed
Add fixture
1 parent 74eb373 commit 1c6245d

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
INSERT INTO
2+
workspace_agent_metadata (
3+
workspace_agent_id,
4+
display_name,
5+
key,
6+
script,
7+
timeout,
8+
interval
9+
)
10+
VALUES
11+
(
12+
'45e89705-e09d-4850-bcec-f9a937f5d78d',
13+
'a h e m',
14+
'ahem',
15+
'rm -rf',
16+
3,
17+
1
18+
);

codersdk/workspaceagents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var WorkspaceAgentLifecycleOrder = []WorkspaceAgentLifecycle{
7575
}
7676

7777
type WorkspaceAgentMetadataResult struct {
78-
CollectedAt time.Time `json:"collected_at"`
78+
CollectedAt time.Time `json:"collected_at" format:"date-time"`
7979
Key string `json:"key"`
8080
Value string `json:"value"`
8181
Error string `json:"error"`

0 commit comments

Comments
 (0)