I don't know what to write...)))
This commit is contained in:
@@ -89,6 +89,15 @@
|
|||||||
"created_at": "2021-09-15T10:43:02.014Z",
|
"created_at": "2021-09-15T10:43:02.014Z",
|
||||||
"updated_at": "2021-08-07T07:06:51.050Z"
|
"updated_at": "2021-08-07T07:06:51.050Z"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"title": "Mangshan pitviper",
|
||||||
|
"category": "task",
|
||||||
|
"archive": false,
|
||||||
|
"content": "Try to synthesize the FTP microchip, maybe it will hack the bluetooth microchip!",
|
||||||
|
"created_at": "2021-09-10T15:30:21.732Z",
|
||||||
|
"updated_at": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": 12,
|
"id": 12,
|
||||||
"title": "Indian python",
|
"title": "Indian python",
|
||||||
@@ -268,5 +277,14 @@
|
|||||||
"content": "If we hack the bus, we can get to the TCP capacitor through the 1080p CSS transmitter!",
|
"content": "If we hack the bus, we can get to the TCP capacitor through the 1080p CSS transmitter!",
|
||||||
"created_at": "2021-08-17T12:04:24.277Z",
|
"created_at": "2021-08-17T12:04:24.277Z",
|
||||||
"updated_at": null
|
"updated_at": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 32,
|
||||||
|
"title": "Cat snake",
|
||||||
|
"category": "task",
|
||||||
|
"archive": false,
|
||||||
|
"content": "bypassing the system won't do anything, we need to quantify the open-source RAM matrix!",
|
||||||
|
"created_at": "2021-10-14T13:03:11.921Z",
|
||||||
|
"updated_at": null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -3,7 +3,7 @@ import { addNote } from './methods/post.js'
|
|||||||
import { notesIndex, getSingleNote, getStats } from './methods/get.js'
|
import { notesIndex, getSingleNote, getStats } from './methods/get.js'
|
||||||
import { editNote } from './methods/patch.js'
|
import { editNote } from './methods/patch.js'
|
||||||
import { deleteNote } from './methods/delete.js'
|
import { deleteNote } from './methods/delete.js'
|
||||||
import { id as validate } from '../services/ValidationService.js'
|
import validate from '../services/ValidationService.js'
|
||||||
import { idOnlySchema, newNoteSchema, updateNoteSchema } from '../repositories/schema.js'
|
import { idOnlySchema, newNoteSchema, updateNoteSchema } from '../repositories/schema.js'
|
||||||
import { setResp403 } from '../helpers/http.js'
|
import { setResp403 } from '../helpers/http.js'
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {webFields} from '../repositories/schema.js'
|
|||||||
* @param schema
|
* @param schema
|
||||||
* @returns {(function(*, *, *): Promise<*|undefined>)|*}
|
* @returns {(function(*, *, *): Promise<*|undefined>)|*}
|
||||||
*/
|
*/
|
||||||
export const id = (schema) => async (req, res, next) => {
|
export default (schema) => async (req, res, next) => {
|
||||||
|
|
||||||
let objToValidate
|
let objToValidate
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user