We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee11320 commit 59818f2Copy full SHA for 59818f2
src/lib/db.ts
@@ -5,7 +5,6 @@ import {
5
QueryDatabaseResponse,
6
RichTextItemResponse
7
} from '@notionhq/client/build/src/api-endpoints'
8
-import got from 'got'
9
import { get, set } from 'lodash'
10
import { CollectionInstance, SearchParams } from 'notion-types'
11
import ogs from 'open-graph-scraper'
@@ -403,10 +402,9 @@ export async function searchNotion(
403
402
404
const url = `${apiUrl}/search`
405
406
- return got
407
- .post(url, {
408
- body: JSON.stringify(body),
409
- headers
410
- })
411
- .json()
+ return fetch(url, {
+ method: 'POST',
+ headers: headers,
+ body: JSON.stringify(body)
+ }).then(response => response.json())
412
}
0 commit comments