Skip to content

Commit de07351

Browse files
authored
fix: access the templateVersion.HasAITask field properly (#18434)
1 parent 1357a3a commit de07351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbmem/dbmem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8500,7 +8500,7 @@ func (q *FakeQuerier) HasTemplateVersionsWithAITask(_ context.Context) (bool, er
85008500
defer q.mutex.RUnlock()
85018501

85028502
for _, templateVersion := range q.templateVersions {
8503-
if templateVersion.HasAITask {
8503+
if templateVersion.HasAITask.Valid && templateVersion.HasAITask.Bool {
85048504
return true, nil
85058505
}
85068506
}

0 commit comments

Comments
 (0)