feat(runtime): 即梦本机运行时 - 接入安全生成闭环与桌面本机渠道
Refs #225 Co-authored-by: zkhyww <127009345+zkhyww@users.noreply.github.com>
This commit is contained in:
@@ -71,9 +71,9 @@ export async function deleteStoredMedia(keys: Iterable<string>) {
|
||||
);
|
||||
}
|
||||
|
||||
export async function cleanupUnusedMedia(usedData: unknown) {
|
||||
export async function cleanupUnusedMedia(usedData: unknown, scope = getActiveUserScope()) {
|
||||
const usedKeys = collectMediaStorageKeys(usedData);
|
||||
const currentScope = getActiveUserScope();
|
||||
const currentScope = scope;
|
||||
const unused: string[] = [];
|
||||
await store.iterate((_value, key) => {
|
||||
const parts = key.split(":");
|
||||
|
||||
Reference in New Issue
Block a user