Skip to content

Commit 85e3b37

Browse files
committed
update reset-wind-history endpoint to change months from object to array
1 parent fd1a192 commit 85e3b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ router.delete("/reset-wind-history", authMiddleware, async (ctx) => {
286286
transaction.set(["station", station.value.id], {
287287
...station.value,
288288
totalEntries: 0,
289-
months: {},
289+
months: [],
290290
});
291291
}
292292

0 commit comments

Comments
 (0)