Skip to content

Commit

Permalink
fix(classes): update db method to update public talks downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Sep 19, 2023
1 parent 80c1363 commit 5db6479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/S34s.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ S34sClass.prototype.reset = async function (talks) {

if (hasChange) {
S34.talk_title = { ...S34.talk_title, [language]: { title: incomingTitle, modified: incomingModified } };
await appDb.public_talks.update(this.talk_number, { ...S34 });
await appDb.public_talks.put({ ...S34 }, S34.talk_number);

this.talks = this.talks.filter((talk) => talk.talk_number !== S34.talk_number);
this.talks.push(S34);
Expand Down

0 comments on commit 5db6479

Please sign in to comment.