Skip to content

Commit db9c55f

Browse files
committed
Fail if NOTION_FILE_TOKEN not specified
1 parent 2c2fa4b commit db9c55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎notion-backup.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let axios = require('axios')
2121
}
2222
;
2323

24-
if (!NOTION_TOKEN || !NOTION_SPACE_ID) {
24+
if (!NOTION_TOKEN || !NOTION_FILE_TOKEN || !NOTION_SPACE_ID) {
2525
die(`Need to have NOTION_TOKEN, NOTION_FILE_TOKEN and NOTION_SPACE_ID defined in the environment.
2626
See https://github.com/darobin/notion-backup/blob/main/README.md for
2727
a manual on how to get that information.`);

0 commit comments

Comments
 (0)