Skip to content

Commit

Permalink
remove compiledRules from subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Jun 15, 2024
1 parent 4d48726 commit 3affde4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/background/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ async function tryLock(
export function update(id: SubscriptionId): Promise<void> {
return tryLock(id, async () => {
const {
subscriptions: { [id]: subscription },
subscriptions: {
[id]: { compiledRules, ...subscription },
},
} = await loadFromRawStorage(["subscriptions"]);
if (!subscription || !(subscription.enabled ?? true)) {
return;
Expand Down

0 comments on commit 3affde4

Please sign in to comment.