mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 16:28:19 +00:00
enhancement(lint): Fix lint errors for src/modules/journey.ts
Co-authored-by: NeonGamerBot-QK <neon@saahild.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
6f0acc6485
commit
b6ad96a79b
1 changed files with 8 additions and 8 deletions
|
|
@ -131,9 +131,9 @@ export async function shipUpdatesCron(app: ModifiedApp) {
|
|||
for (const update of updates) {
|
||||
const entry = app.dbs.journey.get(update.project_id.toString());
|
||||
if (!entry) continue;
|
||||
let msg = null;
|
||||
try {
|
||||
msg = await app.client.chat.postMessage({
|
||||
let msg = null;
|
||||
try {
|
||||
msg = await app.client.chat.postMessage({
|
||||
channel: `C08N1NWKEF4`,
|
||||
thread_ts: entry.root_message,
|
||||
reply_broadcast: true,
|
||||
|
|
@ -155,9 +155,9 @@ try {
|
|||
},
|
||||
].filter(Boolean),
|
||||
});
|
||||
} catch(e) {
|
||||
// please dont use bad img urls smh
|
||||
msg = await app.client.chat.postMessage({
|
||||
} catch (e) {
|
||||
// please dont use bad img urls smh
|
||||
msg = await app.client.chat.postMessage({
|
||||
channel: `C08N1NWKEF4`,
|
||||
thread_ts: entry.root_message,
|
||||
reply_broadcast: true,
|
||||
|
|
@ -170,10 +170,10 @@ try {
|
|||
// TODO add the ping back
|
||||
text: `:tada: *New Update!*\n_${update.text}_ by <@${update.slack_id}>`,
|
||||
},
|
||||
}
|
||||
},
|
||||
].filter(Boolean),
|
||||
});
|
||||
}
|
||||
}
|
||||
entry.updates.push({
|
||||
meta: update,
|
||||
created_at: Date.now(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue