mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-17 02:01:03 +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