Created
April 26, 2023 14:16
-
-
Save Grubba27/03583112974e8c16cbc2d91ad717224c to your computer and use it in GitHub Desktop.
error when building docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Log error: | |
| // ERROR: Unable to parse /Users/grubba/Desktop/work/meteor/meteor/packages/accounts-password/password_server.js: await is a reserved word (1133:39) | |
| // ERROR: Unable to parse /Users/grubba/Desktop/work/meteor/meteor/packages/webapp/webapp_server.js: await is a reserved word (1496:0) | |
| /// password_server.js: | |
| async function __initAccountsIndexes() { | |
| await Meteor.users.createIndexAsync( | |
| "services.email.verificationTokens.token", | |
| { unique: true, sparse: true } | |
| ); | |
| await Meteor.users.createIndexAsync("services.password.reset.token", { | |
| unique: true, | |
| sparse: true, | |
| }); | |
| await Meteor.users.createIndexAsync("services.password.enroll.token", { | |
| unique: true, | |
| sparse: true, | |
| }); | |
| } | |
| await __initAccountsIndexes(); | |
| // Idea: | |
| !!process.env.GENERATING_DOCS ? null : await __initAccountsIndexes(); // breakes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment