Skip to content

Commit 459bd62

Browse files
committed
don't create snapshot when update pending
1 parent 42f9671 commit 459bd62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

resource-aggregate/cqrs/events/resourceStateSnapshotTaken.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func (rs *ResourceStateSnapshotTaken) HandleEventResourceUpdatePending(ctx conte
7474
return status.Errorf(codes.FailedPrecondition, "resource is unpublished")
7575
}
7676
rs.mapForCalculatePendingRequestsCount[contentUpdatePending.AuditContext.CorrelationId] = true
77+
rs.PendingRequestsCount = uint32(len(rs.mapForCalculatePendingRequestsCount))
7778
return nil
7879
}
7980

0 commit comments

Comments
 (0)