message: API: Fix broken /api/units/:id route
diff: @@ -38,11 +38,10 @@ export class UnitController {
  @Get('/:id')
  async getUnit(@Param('id') id: string) {
  const unit = await Unit.findById(id);
  -
  - if (unit) {
  + if (!unit) {
  throw new NotFoundError();
  }
  - return unit;
  + return unit.toObject();
  }
  /**
  