processing / p5.js-web-editor

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.
https://editor.p5js.org
GNU Lesser General Public License v2.1
1.3k stars 1.27k forks source link

Delete unused callback on `isSlugUnique` function #3022

Closed lindapaiste closed 4 months ago

lindapaiste commented 4 months ago

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: