mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 18:01:11 +10:00
Allow creation of space
* other fixes and cleanups
This commit is contained in:
@ -33,7 +33,7 @@ export class SpaceRepo {
|
||||
if (isValidUUID(spaceId)) {
|
||||
query = query.where('id', '=', spaceId);
|
||||
} else {
|
||||
query = query.where('slug', '=', spaceId);
|
||||
query = query.where(sql`LOWER(slug)`, '=', sql`LOWER(${spaceId})`);
|
||||
}
|
||||
return query.executeTakeFirst();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user