mirror of
https://github.com/docmost/docmost.git
synced 2026-07-12 03:34:52 +10:00
fix
This commit is contained in:
@@ -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();
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user