|
|
@@ -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
|
|
|
});
|