Skip to content

Instantly share code, notes, and snippets.

@Grubba27
Created April 26, 2023 14:16
Show Gist options
  • Select an option

  • Save Grubba27/03583112974e8c16cbc2d91ad717224c to your computer and use it in GitHub Desktop.

Select an option

Save Grubba27/03583112974e8c16cbc2d91ad717224c to your computer and use it in GitHub Desktop.
error when building docs
// 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