fix: Include deleted workspaces when searching for available subdomains, closes #7787

This commit is contained in:
Tom Moor
2024-10-16 22:59:22 -04:00
parent bdac4360b4
commit b55915c257
+4 -1
View File
@@ -90,7 +90,10 @@ async function findAvailableSubdomain(team: Team, requestedSubdomain: string) {
let append = 0;
for (;;) {
const existing = await Team.findOne({ where: { subdomain } });
const existing = await Team.findOne({
where: { subdomain },
paranoid: false,
});
if (existing) {
// subdomain was invalid or already used, try another