Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: fix issue comment timestamp handler (#12684)
boojack435c1203cdd0
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.goindex 4e61a35807..7b9a1e9a2a 100644--- a/backend/api/v1/plan_service.go+++ b/backend/api/v1/plan_service.go@@ -433,14 +433,21 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePlanRetaskPatch.EarliestAllowedTs = &secondsdoUpdate = true+ var fromEarliestAllowedTime, toEarliestAllowedTime *timestamppb.Timestamp+ if task.EarliestAllowedTs != 0 {+ fromEarliestAllowedTime = timestamppb.New(time.Unix(task.EarliestAllowedTs, 0))+ }+ if seconds != 0 {+ toEarliestAllowedTime = timestamppb.New(time.Unix(seconds, 0))+ }issueCommentCreates = append(issueCommentCreates, &store.IssueCommentMessage{IssueUID: issue.UID,Payload: &storepb.IssueCommentPayload{Event: &storepb.IssueCommentPayload_TaskUpdate_{TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{Tasks: []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, task.StageID, task.ID)},- FromEarliestAllowedTime: timestamppb.New(time.Unix(task.EarliestAllowedTs, 0)),- ToEarliestAllowedTime: timestamppb.New(time.Unix(seconds, 0)),+ FromEarliestAllowedTime: fromEarliestAllowedTime,+ ToEarliestAllowedTime: toEarliestAllowedTime,},},},