Skip to content

Commit be25cb3

Browse files
committed
refactor: Update unwrap for get list
- Add transform for get list response
1 parent d09c620 commit be25cb3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

client/src/clients/api/users.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ class UsersActiveApi extends ApiClientBase {
162162
protected readonly path = '/active'
163163

164164
async list() {
165-
return this.unwrap(() => this.$http.get(this.getUrl()))
165+
return this.unwrap(() => this.$http.get(this.getUrl()), {
166+
transform: (d: any) => d.results
167+
})
166168
}
167169
}

0 commit comments

Comments
 (0)