Procházet zdrojové kódy

fix: remove unnecessary null check for adId in ensureAdIdCounterAligned function

Dave před 1 měsícem
rodič
revize
95d15c8721
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  1. 0 1
      prisma/mongo/seed-ads.ts

+ 0 - 1
prisma/mongo/seed-ads.ts

@@ -118,7 +118,6 @@ function makeTimeWindow(): { startDt: bigint; expiryDt: bigint } {
  */
 async function ensureAdIdCounterAligned(adIdStart: number) {
   const maxRow = await prisma.ads.findFirst({
-    where: { adId: { not: null } },
     select: { adId: true },
     orderBy: { adId: 'desc' as any }, // Prisma Mongo sometimes needs 'as any' for orderBy on optional field
   });