Merge branch 'develop'
This commit is contained in:
commit
4cc33eb740
2 changed files with 12 additions and 1 deletions
|
|
@ -36,6 +36,17 @@ export class SalaryController extends Controller {
|
|||
private poTypeRepository = AppDataSource.getRepository(PosType);
|
||||
private posLevelRepository = AppDataSource.getRepository(PosLevel);
|
||||
|
||||
/**
|
||||
* API ล้างข้อมูล
|
||||
*
|
||||
* @summary ล้างข้อมูล
|
||||
*
|
||||
*/
|
||||
@Get("clear-db")
|
||||
async ClearDb() {
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
* API สร้างผังเงินเดือน
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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: "salary",
|
||||
startTimeStamp: timestamp,
|
||||
endTimeStamp: new Date().toISOString(),
|
||||
processTime: performance.now() - start,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue