Skip to content

Commit 80abc94

Browse files
committed
fix: task remove
1 parent 5c33c69 commit 80abc94

File tree

1 file changed

+1
-1
lines changed
  • src/pages/background/tasks

1 file changed

+1
-1
lines changed

src/pages/background/tasks/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function removeTask(key: string) {
5454
const db = await getDatabase();
5555
const tx = db.transaction([TABLE_NAME_TASKS], 'readwrite');
5656
const os = tx.objectStore(TABLE_NAME_TASKS);
57-
await pifyIDBRequest(os.delete(Number(key)));
57+
await pifyIDBRequest(os.delete(key));
5858
emitter.emit(emitter.INNER_TASK_REMOVE, { key });
5959
}
6060

0 commit comments

Comments
 (0)