This commit is contained in:
Philipinho
2025-04-22 19:53:58 +01:00
parent 33738fba03
commit 7cd2c18b12
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ export class ShareRepo {
if (isValidUUID(shareId)) {
query = query.where('id', '=', shareId);
} else {
query = query.where('key', '=', shareId);
query = query.where(sql`LOWER(key)`, '=', shareId.toLowerCase());
}
await query.execute();

View File

@ -191,7 +191,7 @@ export interface Shares {
includeSubPages: Generated<boolean | null>;
key: string;
pageId: string | null;
searchIndexing: Generated<boolean>;
searchIndexing: Generated<boolean | null>;
spaceId: string;
updatedAt: Generated<Timestamp>;
workspaceId: string;