fix: Off-by-one created after notification for provisioner logs (#4949)

Fixes #4948
This commit is contained in:
Mathias Fredriksson
2022-11-08 17:56:16 +02:00
committed by GitHub
parent e7bd04999f
commit d1c82f6c52

View File

@ -287,7 +287,7 @@ func (server *Server) UpdateJob(ctx context.Context, request *proto.UpdateJobReq
lowestID := logs[0].ID
server.Logger.Debug(ctx, "inserted job logs", slog.F("job_id", parsedID))
data, err := json.Marshal(ProvisionerJobLogsNotifyMessage{
CreatedAfter: lowestID,
CreatedAfter: lowestID - 1,
})
if err != nil {
return nil, xerrors.Errorf("marshal: %w", err)