diff --git a/mod.ts b/mod.ts index 25a7e15ec..e8922abe1 100644 --- a/mod.ts +++ b/mod.ts @@ -39,12 +39,7 @@ export const Netzo = (options: NetzoOptions) => { // services: services(api) services: async (_id: string) => { const $item = await api.services[String(_id)].get() - const client = http($item.client) - // IMPORTANT: cannot spread a Proxy (...client) so use Object.assign - return Object.assign(client, { - $save: (data: any) => api.services[_id].patch(data), - $item - }) + return http($item.client) } } }; \ No newline at end of file