diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-03-28 00:42:08 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-03-28 00:42:08 +0000 |
| commit | b8e8328b1ffffb80bf4ebb776a4a24e5680fc5bc (patch) | |
| tree | bbb4d82cee5f3fbf107e0648dea9a8f66e2710c4 /lib/po/service.ts | |
| parent | 34bbeb86c1a8d24b5f526710889b5e54d699cfd0 (diff) | |
테이블 칼럼 리사이즈 및 핀 충돌 해결
Diffstat (limited to 'lib/po/service.ts')
| -rw-r--r-- | lib/po/service.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/po/service.ts b/lib/po/service.ts index f697bd58..a6c53d9c 100644 --- a/lib/po/service.ts +++ b/lib/po/service.ts @@ -136,6 +136,7 @@ export async function getPOs(input: GetPOSchema) { } const countResult = await countBuilder; + total = countResult[0]?.count || 0; } catch (queryErr) { console.error("Query execution failed:", queryErr); @@ -144,6 +145,9 @@ export async function getPOs(input: GetPOSchema) { const pageCount = Math.ceil(total / input.perPage); + // console.log(data) + // console.log(pageCount) + return { data, pageCount }; } catch (err) { // More detailed error logging |
