You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is indeed a missing branch, could you open a PR with your proposed fix please? Thanks!
Note: please add an error for it in this file, with some context (model/field where the cleartext data was found) to help users debug their application.
Given this schema:
and this test:
I would expect this test case to throw an exception. Is my understanding incorrect?
It's a simple fix if indeed it's unexpected behaviour. https://github.com/47ng/prisma-field-encryption/blob/next/src/encryption.ts#L179 is currently
so if a field is in the database as plaintext (which doesn't match the cloakedStringRegex) then strict mode is not taken into account. Proposed fix:
The text was updated successfully, but these errors were encountered: