File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,19 @@ const internalCertificate = {
756
756
. patchAndFetchById ( certificate . id , {
757
757
expires_on : certificateModel . raw ( 'FROM_UNIXTIME(' + cert_info . dates . to + ')' )
758
758
} ) ;
759
- } ) ;
759
+ } )
760
+ . then ( ( updated_certificate ) => {
761
+ // Add to audit log
762
+ return internalAuditLog . add ( access , {
763
+ action : 'renewed' ,
764
+ object_type : 'certificate' ,
765
+ object_id : updated_certificate . id ,
766
+ meta : updated_certificate
767
+ } )
768
+ . then ( ( ) => {
769
+ return certificate ;
770
+ } ) ;
771
+ } )
760
772
} else {
761
773
throw new error . ValidationError ( 'Only Let\'sEncrypt certificates can be renewed' ) ;
762
774
}
Original file line number Diff line number Diff line change 231
231
"deleted" : " Deleted {name}" ,
232
232
"enabled" : " Enabled {name}" ,
233
233
"disabled" : " Disabled {name}" ,
234
+ "renewed" : " Renewed {name}" ,
234
235
"meta-title" : " Details for Event" ,
235
236
"view-meta" : " View Details" ,
236
237
"date" : " Date"
You can’t perform that action at this time.
0 commit comments