Skip to content

Commit 7290df3

Browse files
mafredripull[bot]
authored andcommitted
fix: Off-by-one created after notification for provisioner logs (#4949)
Fixes #4948
1 parent 1177370 commit 7290df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/provisionerdserver/provisionerdserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (server *Server) UpdateJob(ctx context.Context, request *proto.UpdateJobReq
287287
lowestID := logs[0].ID
288288
server.Logger.Debug(ctx, "inserted job logs", slog.F("job_id", parsedID))
289289
data, err := json.Marshal(ProvisionerJobLogsNotifyMessage{
290-
CreatedAfter: lowestID,
290+
CreatedAfter: lowestID - 1,
291291
})
292292
if err != nil {
293293
return nil, xerrors.Errorf("marshal: %w", err)

0 commit comments

Comments
 (0)