Skip to content

Commit

Permalink
Adding hotkey to department endpoint (backend) (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
yelodevopsi authored Oct 20, 2023
1 parent 92f5b66 commit 1dd7681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Api/Organisation/DeparmentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public ActionResult<List<DepartmentReadModel>> GetDepartment([FromRoute] string
.Include(o => o.Departments)
.Single(o => o.UrlKey == orgUrlKey)
.Departments
.Select(d => new DepartmentReadModel(d.Id, d.Name))
.Select(d => new DepartmentReadModel(d.Id, d.Name, d.Hotkey))
.ToList();
}
}

public record DepartmentReadModel(string Id, string Name);
public record DepartmentReadModel(string Id, string Name, int? Hotkey);

public record OrganisationReadModel(string Name, string UrlKey);

0 comments on commit 1dd7681

Please sign in to comment.