Compare commits

...

2 Commits

Author SHA1 Message Date
鲁树人
1abfe3498f chore: bump version to v0.4.1
All checks were successful
Build and Deploy / build (push) Successful in 2m20s
2025-02-25 20:30:59 +09:00
鲁树人
e69393d1bc fix(kgm): extract hash/key from both tables 2025-02-25 20:30:25 +09:00
2 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "um-react",
"private": true,
"version": "0.4.0",
"version": "0.4.1",
"type": "module",
"scripts": {
"start": "vite",

View File

@ -69,7 +69,17 @@ export class DatabaseKeyExtractor {
let sql: undefined | string;
if (this.hasTable(db, 'ShareFileItems')) {
sql = `select EncryptionKeyId, EncryptionKey from ShareFileItems where EncryptionKey != '' group by EncryptionKeyId`;
sql = `
select H, K from (
select EncryptionKeyId as H, EncryptionKey as K from ShareFileItems
union all
select EnHash as H, EnKey as K from DownloadItem
) t
where
t.H is not null and t.H != ''
and t.K is not null and t.K != ''
group by t.H
`;
}
if (!sql) return null;