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 = {
756756 . patchAndFetchById ( certificate . id , {
757757 expires_on : certificateModel . raw ( 'FROM_UNIXTIME(' + cert_info . dates . to + ')' )
758758 } ) ;
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+ } )
760772 } else {
761773 throw new error . ValidationError ( 'Only Let\'sEncrypt certificates can be renewed' ) ;
762774 }
Original file line number Diff line number Diff line change 231231 "deleted" : " Deleted {name}" ,
232232 "enabled" : " Enabled {name}" ,
233233 "disabled" : " Disabled {name}" ,
234+ "renewed" : " Renewed {name}" ,
234235 "meta-title" : " Details for Event" ,
235236 "view-meta" : " View Details" ,
236237 "date" : " Date"
You can’t perform that action at this time.
0 commit comments