fix: WRONG CHANNEL

This commit is contained in:
Saahil 2025-01-07 02:14:23 -05:00
parent b9b7a54540
commit 37213381d3
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -232,14 +232,15 @@ export async function cronForAirtable(app: ModifiedApp) {
if (diffMessages.length > 0) {
app.client.chat
.postMessage({
channel: `C07R8DYAZMM`,
channel: `C07LGLUTNH2`,
text: `Airtable data changed :0`,
})
.then(async (r) => {
for (const msg of diffMessages) {
app.client.chat.postMessage({
channel: `C07R8DYAZMM`,
channel: `C07LGLUTNH2`,
text: msg,
thread_ts: r.ts
});
await new Promise((r) => setTimeout(r, 1000));
}