mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
fix: Handle Notion linked database errors (#9429)
This commit is contained in:
1 parent
276ca1bbf2
commit
c9f25546e8
1 file changed
+4
-1
@@ -137,7 +137,10 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic
|
||||
// Skip this page/database if it's not found or not accessible
|
||||
if (
|
||||
error.code === APIErrorCode.ObjectNotFound ||
|
||||
error.code === APIErrorCode.Unauthorized
|
||||
error.code === APIErrorCode.Unauthorized ||
|
||||
error.message.includes(
|
||||
"Database with ID is a linked database. Database retrievals do not support linked databases"
|
||||
)
|
||||
) {
|
||||
Logger.warn(
|
||||
`Skipping Notion ${
|
||||
|
||||
Reference in new issue
Block a user