From 9e9db251c813f8748ecd4185f697e926f4c392fa Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 5 Sep 2025 14:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/ShortcutKey/UserWLTemplateService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ShortcutKey/UserWLTemplateService.cs b/IRaCIS.Core.Application/Service/Reading/ShortcutKey/UserWLTemplateService.cs index 9603828db..d74faaadc 100644 --- a/IRaCIS.Core.Application/Service/Reading/ShortcutKey/UserWLTemplateService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ShortcutKey/UserWLTemplateService.cs @@ -82,14 +82,14 @@ namespace IRaCIS.Core.Application.Service /// /// [HttpPost] - public async Task GetAutoCutNextTask() + public async Task GetAutoCutNextTask() { return await _userRoleRepository.Where(x => x.Id == _userInfo.UserRoleId).Select(x => new { AutoCutNextTask = x.AutoCutNextTask, IsDoubleScreen = x.IsDoubleScreen, - }).FirstNotNullAsync(); + }).FirstOrDefaultAsync(); }