Skip to content

Commit 3ede491

Browse files
committed
fix domain struct
1 parent 12c6c3b commit 3ede491

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/api/dp.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ type Domain = {
3838
}
3939
}
4040

41+
type Item = {
42+
domain: Domain;
43+
}
44+
4145
// Search distribution network for domain
4246
export function dp(api: DanApi) {
4347
async function search(query: string) {
4448
const { results } = await api.endpoint.request('/dp/demand/domains', 'GET', { query });
45-
return results as Domain[];
49+
return results as Item[];
4650
}
4751

4852
return { search };

0 commit comments

Comments
 (0)