Skip to content

Omissions on docu page: https://vinejs.dev/docs/extend/custom_rules #34

@boboPrem1

Description

@boboPrem1

On the page: Concerned page,

Section "Creating custom rules" in the first part of the code example, the imports of db and vine are missing.

Suggested correction, insert the following lines:
import db from '@adonisjs/lucid/services/db'
import vine from '@vinejs/vine'

Still in the same section at the level of:

const row = await db
.select(options.column)
.from(options.table)
.where(options.column, value)
.first()

.select() should come after .from(),

Suggested correction, insert the following lines:

const row = await db
.from(options.table)
.select(options.column)
.where(options.column, value)
.first()

Maybe I can update the affected file myself :) :)

@boboPrem1

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