vulcan-api / vulcan-api-js

Unoffical Vulcan UONET+ SDK for JavaScript / TypeScript
https://vulcan-api.github.io/vulcan-api-js/
MIT License
26 stars 1 forks source link

getLessons() and getGrades() are broken #5

Closed cooligus closed 1 year ago

cooligus commented 1 year ago

You can't execute any of these functions.

It's an error code:

C:\Users\pewie\Documents\Muj Elektryk\node_modules\vulcan-api-js\lib\index.js:2486
        query["unitId"] = student.unit.id;
                                  ^

TypeError: Cannot read properties of undefined (reading 'unit')
    at ApiHelper.getList (C:\Users\pewie\Documents\Muj Elektryk\node_modules\vulcan-api-js\lib\index.js:2486:35)
    at VulcanHebe.getLessons (C:\Users\pewie\Documents\Muj Elektryk\node_modules\vulcan-api-js\lib\index.js:3876:40)
    at main (C:\Users\pewie\Documents\Muj Elektryk\index.js:14:18)
    at Object.<anonymous> (C:\Users\pewie\Documents\Muj Elektryk\index.js:23:1)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.13.0
cooligus commented 1 year ago

Duplicate of #3