Skip to content

Commit

Permalink
🐛 fix: unable to edit badgeNumber in admin (closes #377)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Feb 7, 2022
1 parent cd9fe10 commit 5a28eea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/controllers/admin/manage/Units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class ManageUnitsController {
suspended: data.suspended ?? false,
callsign2: data.callsign2,
callsign: data.callsign,
badgeNumber: data.badgeNumber,
},
});

Expand Down
1 change: 1 addition & 0 deletions packages/schemas/src/leo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const UPDATE_UNIT_SCHEMA = z.object({
divisions: z.array(z.string().min(2).max(255).or(SELECT_VALUE)).min(1),
status: z.string().max(255).nullable(),
suspended: z.boolean().nullable(),
badgeNumber: z.number().min(1),
});

export const UPDATE_OFFICER_STATUS_SCHEMA = z.object({
Expand Down

0 comments on commit 5a28eea

Please sign in to comment.