Skip to content

refactor(notification): 移除通知服务中的IP地址参数#338

Merged
laoshuikaixue merged 2 commits intomainfrom
refactor/remove-notification-ip-params
Apr 11, 2026
Merged

refactor(notification): 移除通知服务中的IP地址参数#338
laoshuikaixue merged 2 commits intomainfrom
refactor/remove-notification-ip-params

Conversation

@laoshuikaixue
Copy link
Copy Markdown
Owner

  • 移除createSongSelectedNotification函数中的clientIP参数
  • 移除createSongPlayedNotification函数中的clientIP参数
  • 移除createSystemNotification函数中的ipAddress参数
  • 移除createBatchSystemNotifications函数中的ipAddress参数
  • 移除createSongVotedNotification函数中的ipAddress参数
  • 移除createSongRejectedNotification函数中的ipAddress参数
  • 移除createSubmissionNoteClearedNotification函数中的ipAddress参数
  • 移除createReplayRequestRejectedNotification函数中的ipAddress参数
  • 移除sendEmailNotificationToUser函数中的ipAddress参数
  • 移除sendBatchEmailNotifications函数中的ipAddress参数
  • 清理相关调用处的IP地址获取和传递代码

- 移除createSongSelectedNotification函数中的clientIP参数
- 移除createSongPlayedNotification函数中的clientIP参数
- 移除createSystemNotification函数中的ipAddress参数
- 移除createBatchSystemNotifications函数中的ipAddress参数
- 移除createSongVotedNotification函数中的ipAddress参数
- 移除createSongRejectedNotification函数中的ipAddress参数
- 移除createSubmissionNoteClearedNotification函数中的ipAddress参数
- 移除createReplayRequestRejectedNotification函数中的ipAddress参数
- 移除sendEmailNotificationToUser函数中的ipAddress参数
- 移除sendBatchEmailNotifications函数中的ipAddress参数
- 清理相关调用处的IP地址获取和传递代码
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 11, 2026

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/laoshuikaixues-projects?upgradeToPro=build-rate-limit

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
voice-hub-aws Ready Ready Preview, Comment Apr 11, 2026 1:24pm

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 11, 2026

Deploy Preview for voice-hub-lhzx ready!

Name Link
🔨 Latest commit f33e4a3
🔍 Latest deploy log https://app.netlify.com/projects/voice-hub-lhzx/deploys/69da4c6f4923780008983752
😎 Deploy Preview https://deploy-preview-338--voice-hub-lhzx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the notification system by removing the clientIP and ipAddress parameters from multiple service functions and API endpoints. The review identifies unused variables and imports in server/api/admin/schedule.post.ts and server/api/admin/schedule/publish.post.ts that resulted from these changes and suggests their removal to maintain code cleanliness.

},
clientIP
}
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

在移除 createSongSelectedNotification 中的 clientIP 参数后,该文件中的 clientIP 变量(第 127 行)已不再被使用。建议将其定义以及相关的 getClientIP 导入(第 6 行)一并移除,以保持代码整洁。

},
clientIP
}
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

在移除 createSongSelectedNotification 中的 clientIP 参数后,该文件中的 clientIP 变量(第 96 行)已不再被使用。建议将其定义以及相关的 getClientIP 导入(第 7 行)一并移除,以保持代码整洁。

- 删除 schedule/publish.post.ts 中未使用的 getClientIP 导入
- 删除 schedule/publish.post.ts 中未使用的客户端IP获取代码
- 删除 schedule.post.ts 中未使用的 getClientIP 导入
- 删除 schedule.post.ts 中未使用的客户端IP获取代码
@laoshuikaixue laoshuikaixue merged commit dbe9bba into main Apr 11, 2026
4 of 8 checks passed
@laoshuikaixue laoshuikaixue deleted the refactor/remove-notification-ip-params branch April 11, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant