MCPcopy
hub / github.com/sequelize/sequelize / customFn

Function customFn

test/integration/instance.validations.test.js:376–382  ·  test/integration/instance.validations.test.js::customFn
(val, next)

Source from the content-addressed store, hash-verified

374 type: Sequelize.STRING,
375 validate: {
376 customFn(val, next) {
377 if (val !== class="st">'2') {
378 next(class="st">"name should equal '2'");
379 } else {
380 next();
381 }
382 }
383 }
384 }
385 });

Callers

nothing calls this directly

Calls 1

findAllMethod · 0.80

Tested by

no test coverage detected