fix: supprimer API_VERSION inutilisé + eslint-disable _req

This commit is contained in:
2026-06-08 22:59:30 +02:00
parent e04e286111
commit dc88e56f49
3 changed files with 2 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@ import type { SyncHistoryEntry, SyncLogEntry } from '@/types/sync'
import { NextRequest } from 'next/server' import { NextRequest } from 'next/server'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export async function GET(_req: NextRequest) { export async function GET(_req: NextRequest) {
try { try {
const runs = await prisma.syncRun.findMany({ const runs = await prisma.syncRun.findMany({
+1
View File
@@ -5,6 +5,7 @@ import { computeDiff } from '@/lib/syncDiff'
import { NextRequest } from 'next/server' import { NextRequest } from 'next/server'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export async function GET(_req: NextRequest) { export async function GET(_req: NextRequest) {
try { try {
const [sheetProducts, shopifyProducts] = await Promise.all([ const [sheetProducts, shopifyProducts] = await Promise.all([
-2
View File
@@ -1,7 +1,5 @@
import type { SyncProduct } from '@/types/sync' import type { SyncProduct } from '@/types/sync'
const API_VERSION = 'v4'
function normalizeHandle(ref: string): string { function normalizeHandle(ref: string): string {
return ref return ref
.toLowerCase() .toLowerCase()