I'm a dev building out an email notification system for a client. Initially, the intent was to use webhooks but 1) I didn't care to store a cursor for every single user 2) to reduce costs, I didn't want to have an API set up that would be constantly pinged by Dropbox on every single update
Currently, I'm storing a cursor in a database that we use to check for updates every 30 minutes. Once we get a list of file changes, we pass the information onto another lambda that sends out emails
The issue lies in how we're filtering the notifications. Currently, we filter out each notification by checking the sharing_info.modified_by value. If that value is among the IDs belonging to our team, it's removed.
However, it appears that value isn't specific enough. I'm not sure how/why, but my client was the last one who moved the file and they still received an email notification. Thus, my question is this:
1) Is there a way to specifically view events that are file uploads only?
2) Is the modified_by value inside the fileMetadata object the best way to check who last uploaded or edited a file?
Please let me know if seeing my code is necessary for context.