actualizar cada min

This commit is contained in:
Cat /dev/Nulo 2023-04-30 20:29:06 -03:00
parent 872268cb29
commit ec692186d5

View file

@ -14,7 +14,7 @@
.flatMap((d) => d.done.map((t) => ({ ...t, friend: d }))) .flatMap((d) => d.done.map((t) => ({ ...t, friend: d })))
.sort((a, b) => b.started - a.started); .sort((a, b) => b.started - a.started);
const sTimer = timer(1000); const sTimer = timer(1000);
const hTimer = timer(1000 * 60 * 60); const mTimer = timer(1000 * 60);
</script> </script>
<section> <section>
@ -51,7 +51,7 @@
}) })
)} )}
hace hace
{formatDistance($hTimer, new Date(thing.started + thing.took))} {formatDistance($mTimer, new Date(thing.started + thing.took))}
</li> </li>
{/each} {/each}
</ul> </ul>