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:
zeon-neon[bot] 2025-04-19 04:20:26 +00:00 committed by GitHub
parent 6f0acc6485
commit b6ad96a79b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),