fix: (testing) log?

This commit is contained in:
Saahil 2024-12-18 21:36:08 -05:00
parent 8bc50a2edb
commit bbea4e530e
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6
2 changed files with 5 additions and 3 deletions

View file

@ -195,6 +195,8 @@ export default class AnonDM implements Command {
await ack();
console.debug(`#action`, par);
console.log(action);
//@ts-ignore
const mail_hash_id = action.value as string;
const user = par.body.user;
// display user model
// await app.client.chat.postMessage({

View file

@ -100,7 +100,7 @@ export default class AppHome implements Command {
return false;
}
})
.map((e) => {
.map((e,i) => {
// map to a slack element block
return {
type: "section",
@ -115,8 +115,8 @@ export default class AppHome implements Command {
text: "Open",
emoji: true,
},
value: "open_mail_v",
action_id: "open_mail_actionid",
value: i.toString(),
action_id: "open_mail_"+event.user,
},
};
}),