summaryrefslogtreecommitdiff
path: root/lib/form-list/service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/form-list/service.ts')
-rw-r--r--lib/form-list/service.ts19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/form-list/service.ts b/lib/form-list/service.ts
index d49dc5fc..10dfd640 100644
--- a/lib/form-list/service.ts
+++ b/lib/form-list/service.ts
@@ -11,8 +11,8 @@ import { countFormLists, selectFormLists } from "./repository";
import { projects } from "@/db/schema";
export async function getFormLists(input: GetFormListsSchema) {
- return unstable_cache(
- async () => {
+ // return unstable_cache(
+ // async () => {
try {
const offset = (input.page - 1) * input.perPage;
const advancedTable = true;
@@ -33,6 +33,7 @@ export async function getFormLists(input: GetFormListsSchema) {
ilike(formListsView.formName, s),
ilike(formListsView.tagTypeLabel, s),
ilike(formListsView.classLabel, s),
+ ilike(formListsView.remark, s),
ilike(formListsView.projectName, s), // 뷰 테이블의 projectName 사용
ilike(formListsView.projectCode, s), // 뷰 테이블의 projectCode 사용
);
@@ -81,11 +82,11 @@ export async function getFormLists(input: GetFormListsSchema) {
// 에러 발생 시 디폴트
return { data: [], pageCount: 0 };
}
- },
- [JSON.stringify(input)], // 캐싱 키
- {
- revalidate: 3600,
- tags: ["form-lists"],
- }
- )();
+ // },
+ // [JSON.stringify(input)], // 캐싱 키
+ // {
+ // revalidate: 3600,
+ // tags: ["form-lists"],
+ // }
+ // )();
} \ No newline at end of file