Skip to content

Bug with or: #2

Open
Open

Description

@pkuczaj
    statement.where({
        or: [{
            'et.type': 'User Follow Band',
            'bu.id': userID
        }, {
            'et.type': 'Playlist - Add Song',
            'p.user_ud': userID
        }]
    });

will generate a crash in Predicate.js:21

It looks like it's missing a definition for the AndPredicate function.

TypeError: undefined is not a function
data: server.js:21374 - at Function.Predicate.parse (/Users/pkuczaj/Dropbox/Development/nodejs/Muzooka/API/node_modules/sql-composer/lib/predicates/Predicate.js:21:16)
data: server.js:21374 - at Function.Predicate.parse (/Users/pkuczaj/Dropbox/Development/nodejs/Muzooka/API/node_modules/sql-composer/lib/predicates/Predicate.js:37:46)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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