feat: enhance CreateManualPayment command with image document ID and update protobuf definitions
Build and Deploy / build (push) Successful in 1m50s
Build and Deploy / build (push) Successful in 1m50s
This commit is contained in:
+12
-3
@@ -50,10 +50,19 @@ public class CreateManualPaymentCommandHandler : IRequestHandler<CreateManualPay
|
||||
File = ByteString.CopyFrom(request.ImageFile.File)
|
||||
}, cancellationToken: cancellationToken);
|
||||
|
||||
if (fileInfo != null && !string.IsNullOrWhiteSpace(fileInfo.File))
|
||||
if (fileInfo != null)
|
||||
{
|
||||
grpcRequest.ImagePath = fileInfo.File;
|
||||
_logger.LogInformation("Image uploaded to FMS: {ImagePath}", fileInfo.File);
|
||||
if (!string.IsNullOrWhiteSpace(fileInfo.File))
|
||||
{
|
||||
grpcRequest.ImagePath = fileInfo.File;
|
||||
_logger.LogInformation("Image uploaded to FMS: {ImagePath}", fileInfo.File);
|
||||
}
|
||||
|
||||
if (fileInfo.Id > 0)
|
||||
{
|
||||
grpcRequest.ImageDocumentId = fileInfo.Id;
|
||||
_logger.LogInformation("Image document ID from FMS: {ImageDocumentId}", fileInfo.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(request.ImagePath))
|
||||
|
||||
Reference in New Issue
Block a user