Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -2370,7 +2370,7 @@ namespace IRaCIS.Application.Services
|
||||
[HttpPost]
|
||||
public async Task<GetReadingTaskDto> GetNextTask(GetNextTaskInDto inDto)
|
||||
{
|
||||
if (inDto.VisitTaskId == null)
|
||||
if (inDto.VisitTaskId == null)
|
||||
{
|
||||
await VerifyReadingRestTime();
|
||||
}
|
||||
@@ -2573,6 +2573,11 @@ namespace IRaCIS.Application.Services
|
||||
[HttpPost]
|
||||
public async Task VerifyReadingRestTime()
|
||||
{
|
||||
var userTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt;
|
||||
if (userTypeEnum != UserTypeEnum.IndependentReviewer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var startReadingTimeKey = _userInfo.Id.ToString()+ "StartReadingTime";
|
||||
var startRestTimeKey = _userInfo.Id.ToString() + "StartRestTime";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user