camel casing and fixes

This commit is contained in:
azivner
2018-04-04 23:04:31 -04:00
parent cf7a336ac2
commit 2cdcb3af12
10 changed files with 32 additions and 22 deletions

View File

@@ -54,7 +54,10 @@ async function protectBranch(req) {
}
async function setNoteTypeMime(req) {
const [noteId, type, mime] = req.params;
// can't use [] destructuring because req.params is not iterable
const noteId = req.params[0];
const type = req.params[1];
const mime = req.params[2];
const note = await repository.getNote(noteId);
note.type = type;