Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kronosapiens committed Feb 3, 2025
1 parent fb3dd50 commit 6692e70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/bolt/chores.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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 }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/bolt/hearts.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit 6692e70

Please sign in to comment.