Skip to content

Commit a50e854

Browse files
committed
Fixing query method
1 parent 9a88944 commit a50e854

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/notion/notion.app.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,9 @@ export default {
287287
return this._getNotionClient().dataSources.update(database);
288288
},
289289
async queryDataSource(dataSourceId, params = {}) {
290-
return this._getNotionClient().request({
291-
method: "POST",
292-
path: `data_sources/${dataSourceId}/query`,
293-
body: params,
290+
return this._getNotionClient().dataSources.query({
291+
data_source_id: dataSourceId,
292+
...params,
294293
});
295294
},
296295
async createFileUpload(file) {

0 commit comments

Comments
 (0)