fix: API Key Google Sheets (remplace service account) + signatures routes GET

This commit is contained in:
2026-06-08 22:52:40 +02:00
parent abf5210de6
commit e04e286111
3 changed files with 20 additions and 21 deletions
+3 -1
View File
@@ -2,7 +2,9 @@ import { NextResponse } from 'next/server'
import { prisma } from '@/lib/prisma'
import type { SyncHistoryEntry, SyncLogEntry } from '@/types/sync'
export async function GET() {
import { NextRequest } from 'next/server'
export async function GET(_req: NextRequest) {
try {
const runs = await prisma.syncRun.findMany({
orderBy: { createdAt: 'desc' },
+3 -1
View File
@@ -3,7 +3,9 @@ import { readSheetProducts } from '@/lib/googleSheets'
import { fetchAllShopifyProducts } from '@/lib/shopifySync'
import { computeDiff } from '@/lib/syncDiff'
export async function GET() {
import { NextRequest } from 'next/server'
export async function GET(_req: NextRequest) {
try {
const [sheetProducts, shopifyProducts] = await Promise.all([
readSheetProducts(),