Skip to content

fix(attendance-cleanup-rule): return active as boolean - #253

Merged
buzz-code merged 1 commit into
mainfrom
claude/project-thread-qv8x77
Nov 1, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/project-thread-qv8x77

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Requested by הדסה · project thread

active was declared with BooleanIntColumn (raw tinyint), so the API returned 1/0. react-admin's BooleanField renders only real booleans, so the "פעיל" column was empty.

Switched to @Column('boolean', { name: 'active', default: true }), the same pattern as Student.isActive. MySQL type stays tinyint(1), so no migration is needed. The sweep's active: true filter is unchanged.

Tests: jest src/jobs src/entity-modules/__tests__/attendance-cleanup-rule.config.spec.ts pass.


Generated by Claude Code

…ue/false

BooleanIntColumn maps to raw tinyint, so mysql2 returned 1/0 and the
react-admin BooleanField rendered an empty cell. Use a boolean column
(same tinyint(1) in MySQL, no schema change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GTicsQ8RQNnQxvSzB95x3
@buzz-code
buzz-code merged commit e523347 into main Nov 1, 2026
4 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