Skip to content

Commit ccc793f

Browse files
authored
Fixed incorrect HTTP method call in patch method. (#687)
1 parent 804e6ad commit ccc793f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class Route {
259259
patch(...args: any[]): Promise<ArangojsResponse> {
260260
const path = typeof args[0] === "string" ? args.shift() : undefined;
261261
const [body, qs, headers] = args;
262-
return this.request({ method: "DELETE", path, body, qs, headers });
262+
return this.request({ method: "PATCH", path, body, qs, headers });
263263
}
264264

265265
/**

0 commit comments

Comments
 (0)