fix broken build,
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user