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

[PATCH] /notice/service/read 서비스 알림 읽음 처리 #18

Merged
merged 3 commits into from
Jan 12, 2022

Conversation

youngkwon02
Copy link
Member

✅ Default Checklist

  • check branch

  • set Labels

  • set Reviewers


📕 Task

  • 서비스 알림 테스트 데이터 생성
  • 서비스 알림 읽음 처리 API 작성

@youngkwon02 youngkwon02 added 🦋 영권 Enhancement ✨ New feature or request labels Jan 11, 2022
@youngkwon02 youngkwon02 self-assigned this Jan 11, 2022
@youngkwon02 youngkwon02 added the PATCH 💚 HTTP method : PATCH label Jan 11, 2022
const { rows } = await client.query(
`
UPDATE spark.notification
SET is_read = TRUE, read_at = now(), updated_at = now()
Copy link
Contributor

Choose a reason for hiding this comment

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

이거 dayjs 라이브러리 써서 timezone 한국으로 설정해주면 좋을 것 같아요!

Copy link
Member Author

Choose a reason for hiding this comment

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

@xxeol2
아 근데 이거는 DB Timezone을 한국으로 맞춰주는게 좋을거라구 생각했어요!!
매번 코드에서 한국 시간대로 변경하는 것도 비용 낭비인거 같구, 누락되는 부분도 생길 수 있을거같아서~!!
혹시 어떻게 생각하세요~??

@youngkwon02 youngkwon02 merged commit 7d12f89 into develop Jan 12, 2022
@youngkwon02 youngkwon02 deleted the feature/#12 branch January 12, 2022 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ New feature or request PATCH 💚 HTTP method : PATCH 🦋 영권
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants