@flowselections/floriday-klanten-module 1.0.96 → 1.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -72,10 +72,10 @@ export async function leesOptioneleTabel(page) {
|
|
|
72
72
|
return Array.isArray(data) ? data : [];
|
|
73
73
|
}
|
|
74
74
|
export async function laadVoorraadAssortiment(sb) {
|
|
75
|
-
const products = await leesOptioneleTabel((from, to) => sb.from("products").select("*").range(from, to));
|
|
75
|
+
const products = await leesOptioneleTabel((from, to) => sb.from("products").select("*").order("id").range(from, to));
|
|
76
76
|
if (products === null)
|
|
77
77
|
return { rijen: [], geenVoorraadModule: true };
|
|
78
|
-
const cache = await leesOptioneleTabel((from, to) => sb.from("floriday_trade_items_cache").select("floriday_id").eq("is_deleted", false).range(from, to));
|
|
78
|
+
const cache = await leesOptioneleTabel((from, to) => sb.from("floriday_trade_items_cache").select("floriday_id").eq("is_deleted", false).order("floriday_id").range(from, to));
|
|
79
79
|
const geldig = new Set();
|
|
80
80
|
for (const r of cache ?? [])
|
|
81
81
|
if (r?.floriday_id)
|