Skip to content

Commit 5000353

Browse files
committed
chore: simplify teams message
1 parent cd80e36 commit 5000353

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/slack.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,10 @@ async function handleApprove(payload, action, env) {
283283
// Notify requester in Teams
284284
if (request.service_url && request.conversation_id) {
285285
try {
286-
const teamsMessage = invited
287-
? `📧 An invitation was sent to ${request.member_email} and they've been added to this team. They'll have access once they accept the invite.`
288-
: `✅ ${request.member_email} has been added to this team.`;
289286
await replyToTeams(
290287
{ serviceUrl: request.service_url, conversation: { id: request.conversation_id } },
291288
env,
292-
teamsMessage,
289+
`✅ ${request.member_email} has been added to this team.`,
293290
);
294291
} catch (teamsErr) {
295292
console.error('replyToTeams failed:', teamsErr);

0 commit comments

Comments
 (0)