게시물 Export ZIP 생성 연결 v1.5.22
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { requireAdminSession } from '../../../../utils/admin-auth'
|
||||
import { listPostExportJobs } from '../../../../repositories/post-export-repository'
|
||||
import {
|
||||
listPostExportJobs,
|
||||
queuePendingPostExportJobs
|
||||
} from '../../../../repositories/post-export-repository'
|
||||
|
||||
/**
|
||||
* 관리자 게시물 Export 작업 목록 API
|
||||
@@ -8,6 +11,9 @@ import { listPostExportJobs } from '../../../../repositories/post-export-reposit
|
||||
*/
|
||||
export default defineEventHandler((event) => {
|
||||
requireAdminSession(event)
|
||||
queuePendingPostExportJobs().catch((error) => {
|
||||
console.error('대기 중인 게시물 Export 작업 실행 실패', error)
|
||||
})
|
||||
|
||||
return listPostExportJobs()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user