-
Notifications
You must be signed in to change notification settings - Fork 1
Fix: 익명 탭 목록 조회 익명 스레드 편지 목록 조회 api 수정 (#159) #162
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
Merged
yeonjuncho
merged 8 commits into
dev
from
feature/#159-fix-익명-탭-목록-조회-익명-스레드-편지-목록-조회-api-수정
Feb 5, 2026
The head ref may contain hidden characters: "feature/#159-fix-\uC775\uBA85-\uD0ED-\uBAA9\uB85D-\uC870\uD68C-\uC775\uBA85-\uC2A4\uB808\uB4DC-\uD3B8\uC9C0-\uBAA9\uB85D-\uC870\uD68C-api-\uC218\uC815"
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
13d9217
fix: 익명 편지함 조회 api에 lettercount 추가 및 익명 스레드 조회api에 reatAt 추가
yeonjuncho 2a00c08
fix: 익명 스레드 편지함 api에서 중복되는 thread_id 제거 및 session id로 바꾸기 및 스웨거 수정
yeonjuncho c1a1c90
fix: 익명 편지함, 익명 스레드 편지 응답 구조 변경
yeonjuncho ee80566
feat: 공지사항 푸시 알림 수동 실행 추가
yeonjuncho 8c9f550
Merge remote-tracking branch 'origin/dev' into feature/#159-fix-익명-탭-…
yeonjuncho 83597d7
fix: 공지사항 푸시 알림 수정
yeonjuncho d5dd1d7
feat: 익명 편지함 hasUnread 필드 추가
yeonjuncho 2b18549
Merge remote-tracking branch 'origin/dev' into feature/#159-fix-익명-탭-…
yeonjuncho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import "dotenv/config"; | ||
| import { sendNoticePushNotification } from "../src/services/notice.service.js"; | ||
|
|
||
| /** | ||
| * 공지사항 푸시 알림 전송 스크립트 | ||
| * | ||
| * 사용 방법: | ||
| * node scripts/send-notice-push.js | ||
| * | ||
| * 기능: | ||
| * - 최근 10분 이내 생성된 공지사항을 찾습니다 | ||
| * - marketingEnabled: true인 사용자에게 푸시 알림을 전송합니다 | ||
| */ | ||
| const main = async () => { | ||
| try { | ||
| console.log("공지사항 푸시 알림 전송을 시작합니다..."); | ||
|
|
||
| const result = await sendNoticePushNotification(); | ||
|
|
||
| console.log("\n=== 전송 결과 ==="); | ||
| console.log(`공지사항: ${result.notices.length}개`); | ||
| console.log(`대상 사용자: ${result.users}명`); | ||
| console.log(`성공: ${result.sent}건`); | ||
| console.log(`실패: ${result.failed || 0}건`); | ||
|
|
||
| process.exit(0); | ||
| } catch (error) { | ||
| console.error("에러 발생:", error); | ||
| process.exit(1); | ||
| } | ||
| }; | ||
|
|
||
| main(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| import { z } from "zod"; | ||
|
|
||
| // ========== Mailbox Schema ========== | ||
| export const threadIdParamSchema = z.object({ | ||
| export const sessionIdParamSchema = z.object({ | ||
| params: z.object({ | ||
| threadId: z.coerce.number("threadId는 숫자여야 합니다.").int("threadId는 정수여야 합니다.").positive("threadId는 1부터 유효합니다.") | ||
| sessionId: z.coerce.number("sessionId는 숫자여야 합니다.").int("sessionId는 정수여야 합니다.").positive("sessionId는 1부터 유효합니다.") | ||
| }) | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripts 파일이 뭔가요? 푸시알림 전송하는거 jobs파일에서 처리합니다. 비동기 메시지 큐로 처리하니 참고해서 수정해주세요