mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: WRONG CHANNEL
This commit is contained in:
parent
b9b7a54540
commit
37213381d3
1 changed files with 3 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue