Skip to content

Commit 9581bb4

Browse files
authored
update: change request parameter (#855)
1 parent 61658c8 commit 9581bb4

File tree

1 file changed

+4
-4
lines changed
  • src/v1/controller/user/agreement

1 file changed

+4
-4
lines changed

src/v1/controller/user/agreement/Set.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export class AgreementSet extends AbstractController<RequestType, ResponseType>
1414
public static readonly schema: FastifySchema<RequestType> = {
1515
body: {
1616
type: "object",
17-
required: ["is_agree_collect_data"],
17+
required: ["isAgree"],
1818
properties: {
19-
is_agree_collect_data: {
19+
isAgree: {
2020
type: "boolean"
2121
},
2222
},
@@ -36,7 +36,7 @@ export class AgreementSet extends AbstractController<RequestType, ResponseType>
3636
}
3737

3838
public async execute(): Promise<Response<ResponseType>> {
39-
await this.svc.userAgreement.set(this.body.is_agree_collect_data);
39+
await this.svc.userAgreement.set(this.body.isAgree);
4040
return {
4141
status: Status.Success,
4242
data: {
@@ -52,7 +52,7 @@ export class AgreementSet extends AbstractController<RequestType, ResponseType>
5252

5353
interface RequestType {
5454
body: {
55-
is_agree_collect_data: boolean;
55+
isAgree: boolean;
5656
};
5757
}
5858

0 commit comments

Comments
 (0)