Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] /notice/new 새로운 서비스 알림 조회 #212

Merged
merged 17 commits into from
Feb 26, 2022
Merged

Conversation

youngkwon02
Copy link
Member

@youngkwon02 youngkwon02 commented Feb 22, 2022

✅ Default Checklist

  • check branch

  • set Labels

  • set Reviewers


📕 Task

  • /notice/new 새로운 서비스 알림 조회 API 구현

@youngkwon02 youngkwon02 self-assigned this Feb 22, 2022
@youngkwon02 youngkwon02 changed the title [FEAT] notice/new 새로운 서비스 알림 조회 [FEAT] /notice/new 새로운 서비스 알림 조회 Feb 22, 2022
Copy link
Contributor

@xxeol2 xxeol2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋아요!!! LGTM~~

const { noticeDB } = require('../../../db');

/**
* @새로운_빨콩_알림_조회
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅋㅋㅋ 빨콩 너무 CUTE

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅋㅋㅋㅋㅋㅋㅋㅋ 큐티가 생명이지~~😆

Comment on lines 27 to 29
functions.logger.error(`[ERROR] [${req.method.toUpperCase()}] ${req.originalUrl}`, `[CONTENT] ${error}`);
console.log(error);
res.status(statusCode.INTERNAL_SERVER_ERROR).send(util.fail(statusCode.INTERNAL_SERVER_ERROR, responseMessage.INTERNAL_SERVER_ERROR));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그 slack 알림 메세지 연결은 나중에 하실건가요?! 갑자기 궁금!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얼라리?.. 누락된거같아요!!! 추가해서 머지할게욥!!!

return `('${title}', '${body}', 'Spark_IMG_URL', ${f.userId}, ${isService})`;
});

pushAlarm.sendMulticastByTokens(req, res, title, body, receiverTokens, certifyingImg[0], 'enable');
await noticeDB.addNotifications(client, notifications);
if (notifications.length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이고 그냥 if(notification.length) 해줘두 될것같아요 (아주 사소한..)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

앗 좋아요 좋아~~

@youngkwon02 youngkwon02 merged commit 5c90105 into develop Feb 26, 2022
@youngkwon02 youngkwon02 deleted the feature/#211 branch February 26, 2022 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants