Skip to content

Commit 7894de1

Browse files
Do not submit orders unless they have a comment.
1 parent 8fab76f commit 7894de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/Services/OrderService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public async Task<OperationResult> ReviewOrder(string id, OrderReviewDto orderRe
228228
return result;
229229
}
230230

231-
if (orderDto.Status == OrderStatus.Approved || orderDto.Status == OrderStatus.Unapproved)
231+
if ((orderDto.Status == OrderStatus.Approved || orderDto.Status == OrderStatus.Unapproved) && !string.IsNullOrEmpty(orderDto.Comments))
232232
{
233233
_backgroundJobClient.Enqueue<SubmitOrderJob>(job => job.Execute(id));
234234
}

0 commit comments

Comments
 (0)