fix broken build,

This commit is contained in:
louiscklaw
2025-06-13 18:11:12 +08:00
parent 5ff3393f54
commit d767108fcf
18 changed files with 130 additions and 82 deletions

View File

@@ -10,7 +10,8 @@ import type { NextRequest } from 'next/server';
import { STATUS, response, handleError } from 'src/utils/response';
import { AccessLogService } from '../../../../modules/AccessLog/AccessLog.service';
// import { AccessLogService } from '../../../../modules/AccessLog/AccessLog.service';
import { getAccessLogById } from 'src/app/services/AccessLog.service';
// ----------------------------------------------------------------------
@@ -27,7 +28,7 @@ export async function GET(req: NextRequest) {
const accessLogId = searchParams.get('accessLogId');
if (!accessLogId) return response({ message: 'accessLogId is required!' }, STATUS.BAD_REQUEST);
const accessLog = await AccessLogService.findById(accessLogId);
const accessLog = await getAccessLogById(accessLogId);
if (!accessLog) return response({ message: 'AccessLog not found!' }, STATUS.NOT_FOUND);