File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,10 @@ class BusinessBase {
535535 }
536536
537537 async delete ( { id, values = { } } ) {
538+ // Invoke optional beforeDelete hook for custom validation or pre-deletion logic.
539+ if ( this . beforeDelete ) {
540+ await this . beforeDelete ( { id } ) ;
541+ }
538542 if ( this . softDelete === false ) {
539543 return await this . hardDelete ( { id } ) ;
540544 }
Original file line number Diff line number Diff line change 11{
22 "name" : " @durlabh/dframework" ,
3- "version" : " 1.0.46 " ,
3+ "version" : " 1.0.47 " ,
44 "main" : " index.js" ,
55 "license" : " MIT" ,
66 "type" : " module" ,
5555 "tough-cookie" : " ^6.0.0"
5656 },
5757 "devDependencies" : {
58- "@azure/identity" : " ^4.12.0" ,
58+ "@azure/identity" : " ^4.12.0" ,
5959 "@azure/msal-node" : " ^3.8.0" ,
6060 "@azure/storage-blob" : " ^12.28.0" ,
6161 "dayjs" : " ^1.11.18" ,
113113 "optional" : true
114114 }
115115 }
116- }
116+ }
You can’t perform that action at this time.
0 commit comments