The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything.
Ref #521
This is part of a larger effort to move away from callback-based code.
Quick & easy cleanup. projectSchema.methods.isSlugUnique supports an optional callback cb argument. But the one place in the code where we use this function is already using it as an async. So we can safely delete all logic related to the callback.
I have verified that this pull request:
[x] has no linting errors (npm run lint)
[x] has no test errors (npm run test)
[x] is from a uniquely-named feature branch and is up to date with the develop branch.
[x] is descriptively named and links to an issue number, i.e. Fixes #123
Ref #521 This is part of a larger effort to move away from callback-based code.
Quick & easy cleanup.
projectSchema.methods.isSlugUnique
supports an optional callbackcb
argument. But the one place in the code where we use this function is already using it as anasync
. So we can safely delete all logic related to the callback.I have verified that this pull request:
npm run lint
)npm run test
)develop
branch.Fixes #123