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

Skip to content

Codersdk: make workspace_build.deadline a pointer #2015

Closed
@johnstcn

Description

@johnstcn

What

Change this

type WorkspaceBuild struct {
    ...
    Deadline time.Time `json:"deadline"`
    ...

To this:

type WorkspaceBuild struct {
    ...
    Deadline *time.Time `json:"deadline"`
    ...

Why

The FE currently needs to check for the zero-value of time.Time for 'falsey' values.
Making this a pointer would allow passing null and avoid this need.

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions