Skip to content

fix a bug that use a not exist field - #887

Merged
Jiannan-dev merged 6 commits into
mainfrom
feat/add-latest-release-date
Jun 22, 2026
Merged

fix a bug that use a not exist field#887
Jiannan-dev merged 6 commits into
mainfrom
feat/add-latest-release-date

Conversation

@TRebirthC

Copy link
Copy Markdown
Collaborator

fix a bug that use a not exist field

@TRebirthC TRebirthC changed the title Feat/add latest release date fix a bug that use a not exist field Jun 22, 2026
@TRebirthC
TRebirthC force-pushed the feat/add-latest-release-date branch from 56cddc1 to 58e332c Compare June 22, 2026 04:15
@TRebirthC TRebirthC closed this Jun 22, 2026
@TRebirthC TRebirthC reopened this Jun 22, 2026
@TRebirthC
TRebirthC requested a review from Jiannan-dev June 22, 2026 06:09
Jiannan-dev

This comment was marked as outdated.

@Jiannan-dev Jiannan-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Inline code review for PR #887.


const projects = await ViewProjects.findAll({
where,
where: onlyNull ? { latestReleasePublishedAt: null } : undefined,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟡 risk: dropping dataType fixes the bad model field, but this now relies on view_projects permanently enforcing data_type = 1. Add a short code comment or regression test so future view changes do not make onlyNull=false sync non-primary projects.

@Jiannan-dev Jiannan-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Additional inline code review for PR #887.

@@ -249,13 +249,8 @@ export async function syncAllProjectReleaseHandler(req, res) {
const offset = Number(req.body?.offset) || 0;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟡 risk: offset accepts negative request values and passes them to Sequelize. Clamp to >= 0 before querying.

@Jiannan-dev
Jiannan-dev merged commit 3fde27c into main Jun 22, 2026
3 checks passed
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.

2 participants