Skip to content

Commit

Permalink
Merge pull request #421 from TeamSparker/fix/#420
Browse files Browse the repository at this point in the history
[FIX] 빌드 오류 해결
  • Loading branch information
xxeol2 authored Sep 14, 2022
2 parents 2e8d66f + 510fac0 commit 5e030c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions/scheduler/funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const sendRemind = async () => {
let remindUsers = await recordDB.getPushRemindUsers(client, today);

if (remindUsers.length) {
messages = [];
let messages = [];
remindUsers.map((u) => {
if (u.status == 'NONE' || u.status == 'CONSIDER') {
const { title, body, category } = alarmMessage.REMIND_ALERT_NONE(u.roomName);
Expand All @@ -145,7 +145,8 @@ const sendRemind = async () => {
});
pushAlarm.sendMessages(null, null, messages);

const slackMessage = `[REMIND SEND SUCCESS]: To ${targetUsers.length} users: ${targetUsers.map((u) => u.nickname)}`;
const slackMessage = `[REMIND SEND SUCCESS]`;
// const slackMessage = `[REMIND SEND SUCCESS]: To ${.length} users: ${remindUsers.map((u) => u.nickname)}`;
slackAPI.sendMessageToSlack(slackMessage, slackAPI.DEV_WEB_HOOK_ERROR_MONITORING);
return;
}
Expand Down

0 comments on commit 5e030c5

Please sign in to comment.