Skip to content

Commit 5fe4819

Browse files
authored
chore: Pass through AllowUserCancelWorkspaceJobs value to fake db insert (#6006)
1 parent a5e8911 commit 5fe4819

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

coderd/database/databasefake/databasefake.go

+15-14
Original file line numberDiff line numberDiff line change
@@ -2519,20 +2519,21 @@ func (q *fakeQuerier) InsertTemplate(_ context.Context, arg database.InsertTempl
25192519

25202520
//nolint:gosimple
25212521
template := database.Template{
2522-
ID: arg.ID,
2523-
CreatedAt: arg.CreatedAt,
2524-
UpdatedAt: arg.UpdatedAt,
2525-
OrganizationID: arg.OrganizationID,
2526-
Name: arg.Name,
2527-
Provisioner: arg.Provisioner,
2528-
ActiveVersionID: arg.ActiveVersionID,
2529-
Description: arg.Description,
2530-
DefaultTTL: arg.DefaultTTL,
2531-
CreatedBy: arg.CreatedBy,
2532-
UserACL: arg.UserACL,
2533-
GroupACL: arg.GroupACL,
2534-
DisplayName: arg.DisplayName,
2535-
Icon: arg.Icon,
2522+
ID: arg.ID,
2523+
CreatedAt: arg.CreatedAt,
2524+
UpdatedAt: arg.UpdatedAt,
2525+
OrganizationID: arg.OrganizationID,
2526+
Name: arg.Name,
2527+
Provisioner: arg.Provisioner,
2528+
ActiveVersionID: arg.ActiveVersionID,
2529+
Description: arg.Description,
2530+
DefaultTTL: arg.DefaultTTL,
2531+
CreatedBy: arg.CreatedBy,
2532+
UserACL: arg.UserACL,
2533+
GroupACL: arg.GroupACL,
2534+
DisplayName: arg.DisplayName,
2535+
Icon: arg.Icon,
2536+
AllowUserCancelWorkspaceJobs: arg.AllowUserCancelWorkspaceJobs,
25362537
}
25372538
q.templates = append(q.templates, template)
25382539
return template, nil

0 commit comments

Comments
 (0)