Self hosting Parse server aftersave trigger issue with streams sync

Hi,
I’ve succesfully integrated streams and my self-hosted parse server.
Event logs are sent to parse server webhook by streams and data is saved on MongoDB successfully.
But, aftersave trigger doesn’t work for the updates initiated by streams.
When a manually update data by another cloud function aftersave trigger works as expected.

So, is it expected that aftersave trigger doesn’t work for streams, or is there something missing on my environment?

Thanks,

Hi,

Maybe the data is updated by directly adding it to mongo db with streams and in that case the triggers don’t trigger.

You can run a job that reads the data from a table where streams adds it, set a flag when is processed and then process it directly or add it to another table where the triggers will run.

1 Like

This makes sense.

I’ll try to implement your suggestion.

Thanks a lot,

1 Like