Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
router.get('/admin', (req, res) => {
const EditorJSONPromise = new Editor()
.orderBy('name')
.fetchAll()
.then((editors) => {
return editors.map((editor) => {
const editorJSON = editor.toJSON();
return {
id: editorJSON.id,
name: editorJSON.name
}
});
});
const AchievementJSONPromise = new AchievementType()
.orderBy('name')
.fetchAll()
.then((achievements) => {