I don't know what to write...)))

This commit is contained in:
2021-10-15 02:37:04 +03:00
parent 1912baeeab
commit f43cbe6f70
3 changed files with 20 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import {webFields} from '../repositories/schema.js'
* @param schema
* @returns {(function(*, *, *): Promise<*|undefined>)|*}
*/
export const id = (schema) => async (req, res, next) => {
export default (schema) => async (req, res, next) => {
let objToValidate