mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-14 03:15:20 +08:00
Update snapshot
This commit is contained in:
parent
69cc227c87
commit
ab4f0fceb5
1 changed files with 12 additions and 0 deletions
|
|
@ -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` };
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue