Skip to content

Commit a7b0d29

Browse files
committed
fix: look for attachment: in file upload source
1 parent b2682fe commit a7b0d29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/notion-client/src/notion-api.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ export class NotionAPI {
239239
if (source) {
240240
if (
241241
source.includes('secure.notion-static.com') ||
242-
source.includes('prod-files-secure')
242+
source.includes('prod-files-secure') ||
243+
source.includes('attachment:')
243244
) {
244245
return {
245246
permissionRecord: {

0 commit comments

Comments
 (0)