Skip to content

Commit cffbb61

Browse files
committed
Cleanup
1 parent ca1a3bb commit cffbb61

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
BEGIN;
22

33
DROP VIEW visible_users;
4+
DROP VIEW template_with_users;
45

56
COMMIT;

coderd/database/queries/templates.sql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ SET
107107
allow_user_cancel_workspace_jobs = $7
108108
WHERE
109109
id = $1
110-
RETURNING
111-
*;
110+
;
112111

113112
-- name: UpdateTemplateScheduleByID :exec
114113
UPDATE
@@ -124,8 +123,7 @@ SET
124123
locked_ttl = $9
125124
WHERE
126125
id = $1
127-
RETURNING
128-
*;
126+
;
129127

130128
-- name: UpdateTemplateACLByID :exec
131129
UPDATE
@@ -135,8 +133,7 @@ SET
135133
user_acl = $2
136134
WHERE
137135
id = $3
138-
RETURNING
139-
*;
136+
;
140137

141138
-- name: GetTemplateAverageBuildTime :one
142139
WITH build_times AS (

coderd/database/sqlc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,3 @@ sql:
8383
emit_db_tags: true
8484
emit_enum_valid_method: true
8585
emit_all_enum_values: true
86-
rename:
87-
template_with_users: TemplateTest

enterprise/audit/table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var auditableResourcesTypes = map[any]map[string]Action{
7272
"default_ttl": ActionTrack,
7373
"created_by": ActionTrack,
7474
"created_by_username": ActionTrack,
75-
"created_by_avatar_url": ActionIgnore,
75+
"created_by_avatar_url": ActionTrack,
7676
"group_acl": ActionTrack,
7777
"user_acl": ActionTrack,
7878
"allow_user_autostart": ActionTrack,

0 commit comments

Comments
 (0)