mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 13:45:23 +02:00
Update stock fetch to use Dropbox URL for Item Availability
This commit is contained in:
@@ -170,8 +170,8 @@ const App: React.FC = () => {
|
||||
|
||||
const handleStockFetch = useCallback(async () => {
|
||||
try {
|
||||
console.log('[App] Fetching stock from /Item Availability.xlsx...');
|
||||
const response = await fetch('/Item Availability.xlsx');
|
||||
console.log('[App] Fetching stock from /api/fetch-stock...');
|
||||
const response = await fetch('/api/fetch-stock');
|
||||
if (!response.ok) throw new Error(`Failed to fetch stock: ${response.status}`);
|
||||
|
||||
const buffer = await response.arrayBuffer();
|
||||
|
||||
Reference in New Issue
Block a user