타입에러 수정

This commit is contained in:
dohyeons
2025-11-21 03:50:45 +09:00
parent 96401634b2
commit ef08c3fd7a
3 changed files with 20 additions and 15 deletions

View File

@@ -1,10 +1,11 @@
import { Request, Response } from "express";
import { Response } from "express";
import { AuthenticatedRequest } from "../types/auth";
import { pool } from "../database/db";
import logger from "../utils/logger";
// 레이아웃 목록 조회
export const getLayouts = async (
req: Request,
req: AuthenticatedRequest,
res: Response
): Promise<Response> => {
try {
@@ -67,7 +68,7 @@ export const getLayouts = async (
// 레이아웃 상세 조회 (객체 포함)
export const getLayoutById = async (
req: Request,
req: AuthenticatedRequest,
res: Response
): Promise<Response> => {
try {
@@ -125,7 +126,7 @@ export const getLayoutById = async (
// 레이아웃 생성
export const createLayout = async (
req: Request,
req: AuthenticatedRequest,
res: Response
): Promise<Response> => {
const client = await pool.connect();
@@ -237,7 +238,7 @@ export const createLayout = async (
// 레이아웃 수정
export const updateLayout = async (
req: Request,
req: AuthenticatedRequest,
res: Response
): Promise<Response> => {
const client = await pool.connect();
@@ -407,7 +408,7 @@ export const updateLayout = async (
// 레이아웃 삭제
export const deleteLayout = async (
req: Request,
req: AuthenticatedRequest,
res: Response
): Promise<Response> => {
try {