Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

TypeError: Cannot read property 'sqlLiteral' of undefined #65

@ghost

Description

Hi,

I get an error that bothers me. Here is my code

DB.from('SplashAd')
        .filter(
            'sport={sport} AND country={country} AND language={language} AND platform_id={platform_id} AND debug={debug} AND expiration_timestamp>{now}',
            filter
        )
        .all()
        .then(function (splash_ads) {
            done(null, splash_ads);
        }, function (err) {
            done(err);
        });

I often use this code and it still works, but not here to make it work. When I remove the filter function I get all the data. Using the where function or first still get the same problem.

Any idea ?

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