Skip to content

Commit 513b2f6

Browse files
committed
Update README to include more information about handler data
1 parent f40d526 commit 513b2f6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,16 @@ commtrackr.init({ // Initialize CommTracker with configurations
9494
// Custom handler function for processing commission data
9595
// This function is called when a commission is created
9696
// You can implement your own logic here, such as saving to a database
97+
// data contains the commission fields data array
98+
// Action metadata can be accessed via data.createdAt and data.createdBy
9799
},
98100
update: (req, data) => {
99101
// Custom handler function for updating commission data
100102
// This function is called when a commission is updated
101103
// You can implement your own logic here, such as saving to a database
104+
// data contains the updated commission object
105+
// Action metadata can be accessed via data.updatedAt and data.updatedBy
106+
// Updated fields can be accessed via data.fields
102107
},
103108
sync: (req) => {
104109
// Custom handler function for syncing user's commissions

0 commit comments

Comments
 (0)