enable teams for self-hosted (#137)

* enable teams for self-hosted

* remove console
This commit is contained in:
KM Koushik
2025-03-29 00:56:06 +11:00
committed by GitHub
parent 1b6676c1b1
commit f1186f875c
12 changed files with 214 additions and 98 deletions

View File

@@ -165,6 +165,17 @@ export async function deleteDomain(id: number) {
});
}
export async function getDomains(teamId: number) {
return db.domain.findMany({
where: {
teamId,
},
orderBy: {
createdAt: "desc",
},
});
}
async function getDmarcRecord(domain: string) {
try {
const dmarcRecord = await dnsResolveTxt(`_dmarc.${domain}`);