Refactor to vertical slice
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { db } from '@/lib/prisma';
|
||||
|
||||
export async function getComplexBySlug(slug: string) {
|
||||
return db.complex.findUnique({ where: { complexSlug: slug } });
|
||||
}
|
||||
Reference in New Issue
Block a user