Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17aaa38

Browse files
committed
fix keyword
1 parent f1de717 commit 17aaa38

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

coderd/audit.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ func auditLogDescription(alog database.GetAuditLogsOffsetRow) string {
226226
codersdk.ResourceType(alog.ResourceType).FriendlyString(),
227227
)
228228

229+
// Strings for build updates follow the below format:
230+
// "{user} started workspace build for workspace {target}"
231+
// where target is a workspace instead of the workspace build
232+
if alog.ResourceType == database.ResourceTypeWorkspaceBuild {
233+
str += " for workspace"
234+
}
235+
229236
// We don't display the name for git ssh keys. It's fairly long and doesn't
230237
// make too much sense to display.
231238
if alog.ResourceType != database.ResourceTypeGitSshKey {

0 commit comments

Comments
 (0)