Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: update plan earliest allowed ts (#8084)

p0ny181dcc18f73c
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index 70515fac4d..180ab1fa61 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -795,7 +795,8 @@ func (s *RolloutService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePla
// EarliestAllowedTs
if spec.EarliestAllowedTime.GetSeconds() != task.EarliestAllowedTs {
- taskPatch.EarliestAllowedTs = &spec.EarliestAllowedTime.Seconds
+ seconds := spec.EarliestAllowedTime.GetSeconds()
+ taskPatch.EarliestAllowedTs = &seconds
doUpdate = true
}