浏览代码

fix: remove unnecessary null check for adId in ensureAdIdCounterAligned function

Dave 1 月之前
父节点
当前提交
95d15c8721
共有 1 个文件被更改,包括 0 次插入1 次删除
  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
   });