dopry / pecans

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
Apache License 2.0
7 stars 7 forks source link

TypeError: backend.releases is not a function #11

Open baconbrad opened 9 months ago

baconbrad commented 9 months ago

I am using something like:

const Pecans = require("@dopry/pecans").Pecans;
const pecans = new Pecans(config.updates);
app.use('/updates', pecans.router);

And I am getting:

this.releasesCache[this.getCacheKey()] = backend.releases();   
                                                         ^
TypeError: backend.releases is not a function
    at new Pecans

I am not too familiar with TypeScript to debug it further but it is causing Pecans to not work completely. My config.updates is valid and works with Nuts. Can I have some assistance in resolving this issue? Thanks.