Skip to content

Commit 3c0b51b

Browse files
authored
Fix http method of updateRichMenuAlias (#310)
1 parent 8ae2285 commit 3c0b51b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export default class Client {
326326
richMenuAliasId: string,
327327
richMenuId: string,
328328
): Promise<{}> {
329-
const res = await this.http.put<{}>(
329+
const res = await this.http.post<{}>(
330330
`${MESSAGING_API_PREFIX}/richmenu/alias/${richMenuAliasId}`,
331331
{
332332
richMenuId,

test/client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ describe("client", () => {
503503
it("updateRichMenuAlias", async () => {
504504
const richMenuId = "test_rich_menu_id";
505505
const richMenuAliasId = "test_rich_menu_alias_id";
506-
const scope = mockPut(
506+
const scope = mockPost(
507507
MESSAGING_API_PREFIX,
508508
"/richmenu/alias/test_rich_menu_alias_id",
509509
{ richMenuId },

0 commit comments

Comments
 (0)