File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/v1/controller/user/agreement Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
5353interface RequestType {
5454 body : {
55- is_agree_collect_data : boolean ;
55+ isAgree : boolean ;
5656 } ;
5757}
5858
You can’t perform that action at this time.
0 commit comments