Skip to content

TypeError: callback is not a function #6

Description

@BertramShell

Hello When trying to call the watch for new items this pops out.

supreme.onNewItem(5, (product, err) => {
if (err) {
console.log(err);
return err;
}
console.log('New Release: ' + item.name);
});

TypeError: callback is not a function
/node_modules/supreme-api/index.js:227:13
at Request._callback /node_modules/supreme-api/index.js:52:22)
at Request.self.callback
node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.
node_modules/request/request.js:1091:12)
at IncomingMessage.g (events.js:292:16)

Thanks for the awsom api 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions