mirror of
https://github.com/mfts/papermark.git
synced 2025-12-20 01:03:24 +08:00
fix: search in domains
This commit is contained in:
@@ -37,9 +37,8 @@ export async function POST(req: Request) {
|
||||
const domains = await prisma.domain.findMany({
|
||||
where: {
|
||||
slug: {
|
||||
// exclude domains that belong to us
|
||||
not: {
|
||||
contains: "papermark.io",
|
||||
in: ["papermark.io", "papermark.com"],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user