fix job
This commit is contained in:
@@ -114,13 +114,13 @@ public class MealSupplementHandlerJob
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
await _dbContext.Client.Ado.RollbackTranAsync();
|
||||
|
||||
await _dbContext.Updateable<MealSupplementRecordEntity>()
|
||||
.SetColumns(x => x.Status == MealSupplementStatusEnumtype.Error)
|
||||
.SetColumns(x => x.Result == ex.Message)
|
||||
.Where(x => x.UniqueId == mealSupplement.UniqueId)
|
||||
.ExecuteCommandAsync();
|
||||
|
||||
await _dbContext.Client.Ado.RollbackTranAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user