mirror of
https://github.com/outline/outline.git
synced 2026-04-25 20:00:13 -05:00
fix: Include deleted workspaces when searching for available subdomains, closes #7787
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user