Skip to content

Commit c746b02

Browse files
committed
fix: build fail
1 parent e52e2c6 commit c746b02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/api/borrow.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { headers } from 'next/headers'
21
import { Borrow } from '../types/borrow'
32
import { QueryParams, ResList, ResSingle } from '../types/common'
43
import { BASE_URL } from './common'
@@ -72,7 +71,7 @@ export const returnBorrow = async (
7271
method: 'POST',
7372
body: JSON.stringify(data),
7473
headers: {
75-
...headers,
74+
...init?.headers,
7675
'Content-Type': 'application/json',
7776
},
7877
})

0 commit comments

Comments
 (0)