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

Commit 8f604cb

Browse files
committed
fix: put accidentally looks for a get request
1 parent f572893 commit 8f604cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/openapi-fetch-angular/src/lib/openapi-client.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export abstract class OpenAPIClientService<Paths extends {}> {
186186

187187
this.put = ((url, init) => {
188188
return coreObservableFetch(url, { ...init, method: 'PUT' });
189-
}) as ClientObservableMethod<Paths, 'get'>;
189+
}) as ClientObservableMethod<Paths, 'put'>;
190190
this.putPromise = (async (url, init) => {
191191
return corePromiseFetch(url, { ...init, method: 'PUT' });
192192
}) as ClientPromiseMethod<Paths, 'put'>;

0 commit comments

Comments
 (0)