fix: supprimer API_VERSION inutilisé + eslint-disable _req
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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([
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user