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)) { if (isValidUUID(shareId)) {
query = query.where('id', '=', shareId); query = query.where('id', '=', shareId);
} else { } else {
query = query.where('key', '=', shareId); query = query.where(sql`LOWER(key)`, '=', shareId.toLowerCase());
} }
await query.execute(); await query.execute();

View File

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