chore: fix verifyEmail missing update properties
This commit is contained in:
@@ -89,7 +89,7 @@ export const traverseFields = ({
|
||||
let targetIndexes = indexes
|
||||
|
||||
if (fieldAffectsData(field)) {
|
||||
columnName = `${columnPrefix || ''}${toSnakeCase(field.name)}`
|
||||
columnName = `${columnPrefix || ''}${field.name[0] === '_' ? '_' : ''}${toSnakeCase(field.name)}`
|
||||
fieldName = `${fieldPrefix || ''}${field.name}`
|
||||
|
||||
// If field is localized,
|
||||
|
||||
@@ -38,6 +38,7 @@ async function verifyEmail (args: Args): Promise<boolean> {
|
||||
id: user.id,
|
||||
collection: collection.config.slug,
|
||||
data: {
|
||||
...user,
|
||||
_verificationToken: null,
|
||||
_verified: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user