Yoni
PPrisma
•Created by Yoni on 2/11/2025 in #help-and-questions
Audit Logging
Interesting. would you say that the next best way to do this is to actually write to the audit table ourselves once the transaction is successfully completed? I don't want to mix business logic with the auditing, especially since failing queries to the audit table might cause the actual business logic to fail... Is there a common alternatative solution?
8 replies
PPrisma
•Created by Yoni on 10/15/2024 in #help-and-questions
Error handling
I stumbled upon findUniqueOrTHrow but calling await ... findUniqueOrThrow doesnt throw an error. Do i need to return its value for it to throw?
3 replies