Skip to content

Commit

Permalink
fix(cli): fix update func bug (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwhite committed Oct 26, 2023
1 parent 7788d6c commit 92c9830
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cli/src/action/function/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ async function push(funcName: string, isCreate: boolean) {
await functionControllerCreate(appSchema.appid, createDto)
} else {
const updateDto: UpdateFunctionDto = {
newName: funcName,
description: funcSchema.description || '',
methods: funcSchema.methods as any,
code,
Expand Down
1 change: 0 additions & 1 deletion cli/src/api/v1/data-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export interface UpdateFunctionDebugDto {

export interface UpdateFunctionDto {
/** Function name is unique in the application */
newName: string;
description?: string;
methods: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD")[];
/** The source code of the function */
Expand Down

0 comments on commit 92c9830

Please sign in to comment.