Skip to content

Commit

Permalink
fix: changesets get created time (#4328)
Browse files Browse the repository at this point in the history
The field was previously always empty
  • Loading branch information
matt2e authored Feb 6, 2025
1 parent 6bbacde commit 1ee4564
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/schemaservice/schemaservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/url"
"os/signal"
"syscall"
"time"

"connectrpc.com/connect"
"golang.org/x/exp/maps"
Expand Down Expand Up @@ -189,9 +190,10 @@ func (s *Service) CreateChangeset(ctx context.Context, req *connect.Request[ftlv
return nil, connect.NewError(connect.CodeInvalidArgument, err)
}
changeset := &schema.Changeset{
Key: key.NewChangesetKey(),
State: schema.ChangesetStatePreparing,
Modules: modules,
Key: key.NewChangesetKey(),
State: schema.ChangesetStatePreparing,
Modules: modules,
CreatedAt: time.Now(),
}

// TODO: validate changeset schema with canonical schema
Expand Down

0 comments on commit 1ee4564

Please sign in to comment.