이미지 미리보기 기능

This commit is contained in:
kjs
2025-09-05 14:52:10 +09:00
parent dcc459850c
commit 20cdcca171
16 changed files with 1093 additions and 48 deletions

View File

@@ -7,6 +7,7 @@ import { PrismaClient } from "@prisma/client";
import config from "../config/environment";
import { AdminService } from "../services/adminService";
import { EncryptUtil } from "../utils/encryptUtil";
import { FileSystemManager } from "../utils/fileSystemManager";
const prisma = new PrismaClient();
@@ -2095,6 +2096,19 @@ export const createCompany = async (
const insertResult = await client.query(insertQuery, insertValues);
const createdCompany = insertResult.rows[0];
// 회사 폴더 초기화 (파일 시스템)
try {
FileSystemManager.initializeCompanyFolder(createdCompany.company_code);
logger.info("회사 폴더 초기화 완료", {
companyCode: createdCompany.company_code,
});
} catch (folderError) {
logger.warn("회사 폴더 초기화 실패 (회사 등록은 성공)", {
companyCode: createdCompany.company_code,
error: folderError,
});
}
logger.info("회사 등록 성공", {
companyCode: createdCompany.company_code,
companyName: createdCompany.company_name,