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/ticketing alert userId #19

Closed
wants to merge 4 commits into from
Closed

Conversation

ohksj77
Copy link
Member

@ohksj77 ohksj77 commented Jan 28, 2025

๐Ÿ˜‹ ์ž‘์—…ํ•œ ๋‚ด์šฉ

  • TicketingAlert JPA ์—”ํ‹ฐํ‹ฐ์˜ userFcmToken ์ œ๊ฑฐ ๋ฐ userId ์ถ”๊ฐ€
  • userFcmToken ์‚ฌ์šฉ ๋กœ์ง userId ์‚ฌ์šฉํ•˜๋„๋ก ์ˆ˜์ •
  • ์ž˜๋ชป๋œ ํŒจํ‚ค์ง€๋ช…(์˜คํƒ€: listner -> listener) 1๊ฑด ์ˆ˜์ •

๐Ÿ™ PR Point

  • quartz ์˜ ๊ฒฝ์šฐ ticketingAlertScheduler.addJob(jobDetail, true, true); ์—์„œ ์ฒซ ๋ฒˆ์งธ boolean ๋งค๊ฐœ๋ณ€์ˆ˜ ๊ฐ’์ด true ๋ผ๋ฉด ๊ฐ™์€ key๋ฅผ ๊ฐ–๋Š” job์ด ์ด๋ฏธ ์žˆ๋‹ค๋ฉด replace ํ•ด์คŒ. ์ฆ‰, key ๋งŒ ๋™์ผํ•˜๊ฒŒ ๋„ฃ์–ด์ฃผ๋ฉด ๋ฌด์กฐ๊ฑด ์ƒˆ๋กœ์šด ์•Œ๋ฆผ ์Šค์ผ€์ค„๋ง์„ ํ•˜๋ฉด์„œ ์˜ˆ์™ธ์ฒ˜๋ฆฌ ํ•˜๊ณ ์ž ํ–ˆ๋˜ ๋ถ€๋ถ„์ด ๋ชจ๋‘ ํ•ด์†Œ๋จ
    • key ์˜ userFcmToken ์‚ฌ์šฉ ๋ถ€๋ถ„์„ userId๋กœ ๋ณ€๊ฒฝํ•จ
  • ์•„๋ž˜๋Š” Quartz ๋‚ด๋ถ€ ์ฝ”๋“œ
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-01-28 แ„‹แ…ฉแ„’แ…ฎ 7 59 00 แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-01-28 แ„‹แ…ฉแ„’แ…ฎ 8 09 32

๐Ÿ‘ ๊ด€๋ จ ์ด์Šˆ


@ohksj77 ohksj77 added the feat add feature label Jan 28, 2025
@ohksj77 ohksj77 self-assigned this Jan 28, 2025
@ohksj77 ohksj77 changed the title Feat/ticketing alert userid Feat/ticketing alert userId Jan 28, 2025
Comment on lines 87 to +88
JobDataMap jobDataMap = new JobDataMap();
jobDataMap.put("userFcmToken", ticketingAlert.userFcmToken());
jobDataMap.put("userFcmToken", ticketingAlert.userId());
Copy link
Contributor

Choose a reason for hiding this comment

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

๋ฉ”๋ชจ๋ฆฌ์—์„œ userFcmToken์€ ๋ฐ›์•„์•ผํ•ด์„œ, ์•Œ๋ฆผ ๋ณด๋‚ผ ๋•Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•  ๊ฒƒ ๊ฐ™์•„์šฉ.
์‹ค์ œ job์ด ์‹คํ–‰๋  ๋•Œ FcmToken์ด ํ•„์š”ํ•˜๋‹ˆ๊น์šฉ.

Copy link
Member Author

Choose a reason for hiding this comment

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

์ œ๊ฐ€ ๋†“์นœ ๋ถ€๋ถ„์ด๋„ค์š”. ์ฝ”๋“œ๋ฅผ ํŒŒ์•…ํ•ด๋ณด๋‹ˆ ์ €๊ธฐ์„œ userFcmToken์„ ๋„ฃ์–ด์ฃผ๊ธฐ ์œ„ํ•ด dto์— userFcmToken์„ ๋„ฃ์–ด์ฃผ๋ ค๋ฉด ํƒ€๊ณ ํƒ€๊ณ  ๋“ค์–ด๊ฐ€๋‹ค ๋ณด๋‹ˆ TicketingAlert (JPA Entity) ์—๋„ userFcmToken ์ด ๋“ค์–ด๊ฐ€์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ์ €๋ฒˆ์— ๋งํ–ˆ๋˜ ๋ฐฉํ–ฅ์„ฑ๊ณผ ๋‹ฌ๋ผ์ง€๋Š”๋ฐ ๊ดœ์ฐฎ์„๊นŒ์š”?

@ohksj77 ohksj77 closed this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat add feature
Projects
None yet
2 participants