feathers-authentication-management icon indicating copy to clipboard operation
feathers-authentication-management copied to clipboard

fix verifyChanges causing 0: {, 1: } during insert and patch

Open closertotheend opened this issue 2 years ago • 3 comments

Due to fact that most realtional dbs do not support string[] inside single column, people cast verifyChanges to text type. When field is deserialized from db we need to parse it twice. Otherwise Object.assign({}, '{}') will yield {0:'{', 1: '}'}

Related issue: https://github.com/feathersjs-ecosystem/feathers-authentication-management/issues/206

closertotheend avatar Oct 15 '23 19:10 closertotheend