This commit is contained in:
@@ -533,6 +533,7 @@ func (s *Service) startAnnouncer() {
|
|||||||
caps := discovery.ProviderSettlementRailGatewayOperations()
|
caps := discovery.ProviderSettlementRailGatewayOperations()
|
||||||
announce := discovery.Announcement{
|
announce := discovery.Announcement{
|
||||||
ID: discovery.StablePaymentGatewayID(rail),
|
ID: discovery.StablePaymentGatewayID(rail),
|
||||||
|
InstanceID: discovery.InstanceID(),
|
||||||
Service: string(mservice.PaymentGateway),
|
Service: string(mservice.PaymentGateway),
|
||||||
Rail: rail,
|
Rail: rail,
|
||||||
Operations: caps,
|
Operations: caps,
|
||||||
|
|||||||
@@ -159,8 +159,7 @@ func (p *PendingConfirmations) MarkClarified(ctx context.Context, requestID stri
|
|||||||
return merrors.InvalidArgument("request_id is required", "request_id")
|
return merrors.InvalidArgument("request_id is required", "request_id")
|
||||||
}
|
}
|
||||||
patch := repository.Patch().
|
patch := repository.Patch().
|
||||||
Set(repository.Field("clarified"), true).
|
Set(repository.Field("clarified"), true)
|
||||||
Set(repository.Field("updatedAt"), time.Now())
|
|
||||||
_, err := p.repo.PatchMany(ctx, repository.Filter(fieldPendingRequestID, requestID), patch)
|
_, err := p.repo.PatchMany(ctx, repository.Filter(fieldPendingRequestID, requestID), patch)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -183,8 +182,7 @@ func (p *PendingConfirmations) AttachMessage(ctx context.Context, requestID stri
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
patch := repository.Patch().
|
patch := repository.Patch().
|
||||||
Set(repository.Field(fieldPendingMessageID), messageID).
|
Set(repository.Field(fieldPendingMessageID), messageID)
|
||||||
Set(repository.Field("updatedAt"), time.Now())
|
|
||||||
updated, err := p.repo.PatchMany(ctx, filter, patch)
|
updated, err := p.repo.PatchMany(ctx, filter, patch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user