don't validate products (race cond)

This commit is contained in:
Traines 2024-12-18 00:34:56 +00:00
parent 318644958a
commit 2a49495959

View file

@ -23,9 +23,7 @@ const createValidateRealtimeDataUpdatedAt = (cfg) => {
const createValidateProducts = (cfg) => {
const validateProducts = (val, p, name = 'products') => {
if (!p) {
return;
} // TODO
return; // TODO
a.ok(isObj(p), name + ' must be an object');
for (let product of cfg.products) {
const msg = `${name}[${product.id}] must be a boolean`;