mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-24 15:38:09 +02:00
feat: Introduce PostgreSQL client for bulk data retrieval and integrate it into product grid data fetching actions.
This commit is contained in:
1 parent
58d467a7ea
commit
4dd1b5f7c7
3 files changed
+36
-9
No files matched your search
@@ -1,14 +1,15 @@
|
||||
"use server";
|
||||
|
||||
import { getFournisseursFromApi, getSitesFromApi } from "@/lib/api-ff-client";
|
||||
import { getSitesFromApi } from "@/lib/api-ff-client";
|
||||
import { pgGetFournisseurs } from "@/lib/pg-ff-client";
|
||||
import { getProductRows } from "./api/get-product-rows";
|
||||
import type { ProductRow, GridFilters } from "@/types/grid";
|
||||
|
||||
/**
|
||||
* Get the list of all suppliers from the FF Nancy API.
|
||||
* Get the list of all suppliers from PostgreSQL (fouadr1).
|
||||
*/
|
||||
export async function getFournisseurs() {
|
||||
return getFournisseursFromApi();
|
||||
return pgGetFournisseurs();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user