Merge branch 'develop'

This commit is contained in:
kittapath 2024-12-24 00:45:23 +07:00
commit eb872e9b13
2 changed files with 12 additions and 1 deletions

View file

@ -38,6 +38,17 @@ export class KpiUserCapacityController extends Controller {
private kpiCapacityRepository = AppDataSource.getRepository(KpiCapacity);
private kpiUserCapacityRepository = AppDataSource.getRepository(KpiUserCapacity);
/**
* API
*
* @summary
*
*/
@Get("clear-db")
async ClearDb() {
return new HttpSuccess();
}
/**
* API 2 () (USER)
*

View file

@ -60,7 +60,7 @@ async function logMiddleware(req: Request, res: Response, next: NextFunction) {
logType: res.statusCode >= 500 ? "error" : res.statusCode >= 400 ? "warning" : "info",
ip: req.ip,
rootId: rootId?.orgRootId ?? null,
systemName: "evaluation",
systemName: "KPI",
startTimeStamp: timestamp,
endTimeStamp: new Date().toISOString(),
processTime: performance.now() - start,