mirror of
https://github.com/docmost/docmost.git
synced 2026-05-09 07:43:06 +08: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