Skip to content

Async Validation Functions Fail #43

@lesichkovm

Description

@lesichkovm

Functions defined as async always pass the validation, even if they return false

function validateUserExists(name, value, params) {
  const user = await db.users.findOne({ where: { id: value } })
  return user != null ? true : false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions