Skip to content

fix/status-and-pfp-sync-both-ways - #168

Merged
mozsarmate merged 4 commits into
mainfrom
full-status-sync
Sep 14, 2026
Merged

mozsarmate merged 4 commits into
mainfrom
full-status-sync

Conversation

@mozsarmate

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Feb 19, 2025 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
schbody-frontend Ready Ready Preview Sep 14, 2026 3:54pm UTC

Request Review

},
},
status:
currentUser.profilePicture.status === 'PENDING'

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.

Ezt egy fv visszaadhatná, 2 ternary egymásban már elég olvashatatlan

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.

String helyett jobb lenne használni az ApplicationStatus enumot

if (status !== ProfilePictureStatus.PENDING) {
await this.applicationService.setActiveApplicationsStatus(id, status, tx);
let appStatus = status;
if (status === 'PENDING') {

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.

String helyett jobb lenne használni az ApplicationStatus enumot

- Remove duplicate DefaultArgs import
- Forward changedById into setActiveApplicationsStatus from
  setProfilePictureStatus so profile-picture status changes are attributed
  in the application audit log
- Lock rows with SELECT ... FOR UPDATE in bulkUpdate() before reading
  statuses, preventing a race where a concurrent status change could make
  the audit log record a stale previousStatus
- Fix Buffer.from(...) calls in exportProfilePictures/findProfilePicture to
  respect byteOffset/byteLength instead of assuming a zero-offset backing
  ArrayBuffer
@mozsarmate
mozsarmate merged commit d6b0959 into main Sep 14, 2026
3 of 4 checks passed
@mozsarmate
mozsarmate deleted the full-status-sync branch September 14, 2026 15:52

This branch was successfully deployed

1 active deployment
Preview — e9825153 Deployed Sep 14, 2026 by vercel[bot]
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