Update snapshot

This commit is contained in:
Leonabcd123 2026-01-09 13:13:30 +02:00
parent 69cc227c87
commit ab4f0fceb5

View file

@ -151,6 +151,18 @@ const actionModals: Record<Action, SimpleModal> = {
};
}
DB.getSnapshot()?.tags?.forEach((tag) => {
if (tag._id === tagId) {
tag.personalBests = {
time: {},
words: {},
quote: {},
zen: {},
custom: {},
};
}
});
void Settings.update();
return { status: 1, message: `Tag PB cleared` };
},