From 6692e70cfe1efe6a12aa21cb2f1f5eab82401a88 Mon Sep 17 00:00:00 2001 From: Daniel Kronovet Date: Mon, 3 Feb 2025 18:48:05 -0500 Subject: [PATCH] Clean up --- src/bolt/chores.app.js | 6 +++--- src/bolt/hearts.app.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bolt/chores.app.js b/src/bolt/chores.app.js index 78c0829..8ffe667 100644 --- a/src/bolt/chores.app.js +++ b/src/bolt/chores.app.js @@ -83,7 +83,7 @@ app.event('user_change', async ({ payload }) => { console.log(`chores user_change - ${user.team_id} x ${user.id}`); await sleep(CHORES_IDX * 1000); - await common.pruneWorkspaceMember(user.team_id, user, now); + await common.pruneWorkspaceMember(user.team_id, user); }); // Publish the app home @@ -211,8 +211,6 @@ app.command('/chores-activate', async ({ ack, command }) => { }); app.view('chores-activate-callback', async ({ ack, body }) => { - await ack({ response_action: 'clear' }); - const actionName = 'chores-activate-callback'; const { now, houseId, residentId } = common.beginAction(actionName, body); @@ -250,6 +248,8 @@ app.view('chores-activate-callback', async ({ ack, body }) => { } await postEphemeral(residentId, text); + + await ack(); }); app.command('/chores-reset', async ({ ack, command }) => { diff --git a/src/bolt/hearts.app.js b/src/bolt/hearts.app.js index 1895a0f..b450021 100644 --- a/src/bolt/hearts.app.js +++ b/src/bolt/hearts.app.js @@ -81,7 +81,7 @@ app.event('user_change', async ({ payload }) => { console.log(`hearts user_change - ${user.team_id} x ${user.id}`); await sleep(HEARTS_IDX * 1000); - await common.pruneWorkspaceMember(user.team_id, user, new Date()); + await common.pruneWorkspaceMember(user.team_id, user); }); app.event('channel_created', async ({ payload }) => {