await saveFile transaction

This commit is contained in:
turbocrime 2025-03-01 16:30:14 -08:00 committed by Daniel Micay
parent c5ef4c8ab2
commit cd83993ce2

View File

@ -113,10 +113,12 @@ class BlobStore {
} }
async saveFile(name, blob) { async saveFile(name, blob) {
await this._wrapReq(
this.db.transaction(["files"], "readwrite").objectStore("files").add({ this.db.transaction(["files"], "readwrite").objectStore("files").add({
name: name, name: name,
blob: blob, blob: blob,
}); })
);
} }
async loadFile(name) { async loadFile(name) {