diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-10 14:03:33 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-10 14:03:33 -0600 |
| commit | bc4fb74239b37c98bdf2dcd85c69c8ec05b91088 (patch) | |
| tree | 7b2a7f064f9b35bf592b79194b341f5fe58332fb /src/authorization/entities.rs | |
| parent | 8e297ae732660b8174703af67b574d64145bd7dc (diff) | |
refactor: pass api client to repository ctor
Diffstat (limited to 'src/authorization/entities.rs')
| -rw-r--r-- | src/authorization/entities.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/authorization/entities.rs b/src/authorization/entities.rs index 6b3807d6..c2e56bd7 100644 --- a/src/authorization/entities.rs +++ b/src/authorization/entities.rs @@ -29,10 +29,8 @@ pub struct EntitiesRepository { } impl EntitiesRepository { - pub fn new(token: String, host: String) -> EntitiesRepository { - EntitiesRepository { - api: Api::new(token, host), - } + pub fn new(api: Api) -> EntitiesRepository { + EntitiesRepository { api: api } } pub async fn all( |
