refactor: System1 API 인증 체계 SSO 전환 및 마이그레이션 정비
- SSO JWT 인증으로 전환 (auth.service.js) - worker_id → user_id 마이그레이션 완료 - departments 연동, CORS 미들웨어 정리 - 불필요 파일 삭제 (tk_database.db, visitRequestController.js) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,6 @@ const initRedis = async () => {
|
||||
});
|
||||
|
||||
redisClient.on('connect', () => {
|
||||
console.log('✅ Redis 캐시 연결 성공');
|
||||
});
|
||||
|
||||
await redisClient.connect();
|
||||
@@ -200,7 +199,6 @@ const createCacheMiddleware = (keyGenerator, ttl = TTL.MEDIUM) => {
|
||||
const cachedData = await get(cacheKey);
|
||||
|
||||
if (cachedData) {
|
||||
console.log(`🎯 캐시 히트: ${cacheKey}`);
|
||||
return res.json(cachedData);
|
||||
}
|
||||
|
||||
@@ -212,7 +210,6 @@ const createCacheMiddleware = (keyGenerator, ttl = TTL.MEDIUM) => {
|
||||
// 성공 응답만 캐시
|
||||
if (res.statusCode >= 200 && res.statusCode < 300) {
|
||||
set(cacheKey, data, ttl).then(() => {
|
||||
console.log(`💾 캐시 저장: ${cacheKey}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user