Code RoomAssignee serializes to false
HardPrep Room Coding #1992

Assignee serializes to false

Code reviewCode quality & reviewSenior–Staff~25 min

Review this TypeScript serializer for a task API. The contract documents `assignee` as optional.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix, specific and kind.

0:00 of about 25 min
Mark a line and say what kind of problem it is.0 findings
1function serializeTask(t: Task) {
2 return {
3 id: t.id,
4 title: t.title,
5 assignee: t.assigneeId ? lookupUser(t.assigneeId) : false,
6 dueDate: t.dueDate ? t.dueDate.toISOString() : '',
7 };
8}
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.