feature/api-development #1

Merged
usulpro merged 47 commits from feature/api-development into main 2025-11-29 23:03:01 +07:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 8d1da7364a - Show all commits

View File

@ -1,4 +1,4 @@
import { eq, and, isNull, desc, count, sql } from 'drizzle-orm';
import { eq, and, isNull, desc, count, inArray } from 'drizzle-orm';
import { db } from '@/db';
import { images, flows } from '@banatie/database';
import type { Image, NewImage, ImageFilters } from '@/types/models';
@ -198,7 +198,7 @@ export class ImageService {
return await db.query.images.findMany({
where: and(
sql`${images.id} = ANY(${ids})`,
inArray(images.id, ids),
isNull(images.deletedAt)
),
});