Skip to content

Commit

Permalink
Add access expiry time to Slack messages
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Tolchanov <[email protected]>
  • Loading branch information
knyar committed Jul 26, 2024
1 parent e99387d commit e0cc71c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/access_approval_prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ async function approve(
}|${access.device.name || access.device.nodeId}>` +
`${reason ? ` for "${reason}"` : ""} was ${
approved ? " :white_check_mark: Approved" : ":x: Denied"
} by <@${approver.userId}>`,
} by <@${approver.userId}> until ` +
new Date(Date.now() + durationSeconds * 1000).toISOString(),
},
],
}],
Expand Down

0 comments on commit e0cc71c

Please sign in to comment.