Skip to content

Commit

Permalink
adjust reset logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JustMaier committed Mar 19, 2023
1 parent 86904d6 commit 5fd89e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions public/reset.html
Expand Up @@ -47,10 +47,9 @@ <h1>Reset Me</h1>
button.innerHTML = 'Running...';

// Clear indexedDB
const dbs = await window.indexedDB.databases();
dbs.forEach((db) => {
if (db.name) window.indexedDB.deleteDatabase(db.name);
});
const dbNames = ['keyval-store', 'tensorflowjs'];
for (const dbName of dbNames) window.indexedDB.deleteDatabase(dbName);


// Clear cache
const cache = await caches.keys();
Expand Down
1 change: 1 addition & 0 deletions src/server/jobs/update-metrics.ts
Expand Up @@ -212,6 +212,7 @@ export const updateMetricsJob = createJob(
CAST(a.details ->> '${tableId}' AS INT) AS ${viewId},
a."createdAt" AS created_at
FROM "UserActivity" a
WHERE a.activity = 'ModelDownload'
) t
GROUP BY user_id, ${viewId}
) a
Expand Down

0 comments on commit 5fd89e8

Please sign in to comment.