mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
don't validate products (race cond)
This commit is contained in:
parent
318644958a
commit
2a49495959
1 changed files with 1 additions and 3 deletions
|
@ -23,9 +23,7 @@ const createValidateRealtimeDataUpdatedAt = (cfg) => {
|
||||||
|
|
||||||
const createValidateProducts = (cfg) => {
|
const createValidateProducts = (cfg) => {
|
||||||
const validateProducts = (val, p, name = 'products') => {
|
const validateProducts = (val, p, name = 'products') => {
|
||||||
if (!p) {
|
return; // TODO
|
||||||
return;
|
|
||||||
} // TODO
|
|
||||||
a.ok(isObj(p), name + ' must be an object');
|
a.ok(isObj(p), name + ' must be an object');
|
||||||
for (let product of cfg.products) {
|
for (let product of cfg.products) {
|
||||||
const msg = `${name}[${product.id}] must be a boolean`;
|
const msg = `${name}[${product.id}] must be a boolean`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue