a fun bot for the hc slack

chore: fix timing issue in resume takes

dunkirk.sh 81d8c42a ec6b2555

verified
Changed files
+4 -2
src
features
+4 -2
src/features/takes.ts
···
(pausedSession.pausedTimeMs || 0),
);
+
const timeRemaining = endTime.getTime() - now.getTime();
+
return {
-
text: `▶️ Takes session resumed! You have ${prettyPrintTime(pausedSession.durationMinutes * 60000)} remaining in your session.`,
+
text: `▶️ Takes session resumed! You have ${prettyPrintTime(timeRemaining)} remaining in your session.`,
response_type: "ephemeral",
blocks: [
{
···
elements: [
{
type: "mrkdwn",
-
text: `You have ${prettyPrintTime(pausedSession.durationMinutes * 60000)} remaining until ${generateSlackDate(endTime)}.`,
+
text: `You have ${prettyPrintTime(timeRemaining)} remaining until ${generateSlackDate(endTime)}.`,
},
],
},