Skip to content

Commit

Permalink
feat(SPV-1214): update AdminGetContacts to use AdminContactFilter for…
Browse files Browse the repository at this point in the history
… improved contact search
  • Loading branch information
jakubmkowalski committed Dec 17, 2024
1 parent 365a996 commit 9d32d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@ func (wc *WalletClient) AdminRecordTransaction(ctx context.Context, hex string)
}

// AdminGetContacts executes an HTTP POST request to search for contacts based on specified conditions, metadata, and query parameters.
func (wc *WalletClient) AdminGetContacts(ctx context.Context, conditions *filter.ContactFilter, metadata map[string]any, queryParams *filter.QueryParams) (*models.SearchContactsResponse, error) {
return Search[filter.ContactFilter, *models.SearchContactsResponse](
func (wc *WalletClient) AdminGetContacts(ctx context.Context, conditions *filter.AdminContactFilter, metadata map[string]any, queryParams *filter.QueryParams) (*models.SearchContactsResponse, error) {
return Search[filter.AdminContactFilter, *models.SearchContactsResponse](
ctx, http.MethodPost,
"/admin/contact/search",
wc.adminXPriv,
Expand Down

0 comments on commit 9d32d76

Please sign in to comment.