Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit cae8aec

Browse files
committed
debug: try removing object.assign to service module
1 parent 5547f0b commit cae8aec

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mod.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ export const Netzo = (options: NetzoOptions) => {
3939
// services: services(api)
4040
services: async (_id: string) => {
4141
const $item = await api.services[String(_id)].get()
42-
const client = http($item.client)
43-
// IMPORTANT: cannot spread a Proxy (...client) so use Object.assign
44-
return Object.assign(client, {
45-
$save: (data: any) => api.services[_id].patch<any>(data),
46-
$item
47-
})
42+
return http($item.client)
4843
}
4944
}
5045
};

0 commit comments

Comments
 (0)