fix(codersdk): make codersdk.ProvisionerDaemon.UpdatedAt a codersdk.NullTime (#11037)

This commit is contained in:
Cian Johnston
2023-12-05 15:40:45 +00:00
committed by GitHub
parent fab343a2e9
commit a235644046
6 changed files with 31 additions and 88 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package codersdk
import (
"context"
"database/sql"
"encoding/json"
"fmt"
"io"
@@ -39,7 +38,7 @@ const (
type ProvisionerDaemon struct {
ID uuid.UUID `json:"id" format:"uuid"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
UpdatedAt sql.NullTime `json:"updated_at" format:"date-time"`
UpdatedAt NullTime `json:"updated_at,omitempty" format:"date-time"`
LastSeenAt NullTime `json:"last_seen_at,omitempty" format:"date-time"`
Name string `json:"name"`
Version string `json:"version"`