Skip to content

Commit

Permalink
Merge pull request #127 from GDSC-PKNU-21-22/dev
Browse files Browse the repository at this point in the history
부리미 서버 1.01v 배포
  • Loading branch information
pp449 authored Oct 5, 2023
2 parents 92172f0 + 2183a54 commit fa3af32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/apis/subscribe/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export const pushNotification = (
db.query(query, async (err: Error, res: SubscribeUser[]) => {
if (err) console.error(err);

if (res.length === 0) {
resolve(0);
return;
}
for (const userInfo of res) {
for (const lists of noticeTitle) {
try {
Expand All @@ -99,8 +103,6 @@ export const pushNotification = (
}
}
resolve(res.length);

resolve(0);
}
});
});
Expand Down

0 comments on commit fa3af32

Please sign in to comment.