You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
Delete the image object from file table (e.g. mongocli)
It's not possible to render list view for student/teacher/admin
TypeError: Cannot read property 'toObject' of null
at model.<anonymous> (/home/daniel/Code/geli/api/build/src/models/Course.js:284:82)
at Generator.next (<anonymous>)
at fulfilled (/home/daniel/Code/geli/api/build/src/models/Course.js:4:58)
I'm not sure if its possible to force this error somehow (i did but can't remeber how). Code above checks if course.image is not null but not if there is a matching object in file table (not null) before calling toObject.
Acceptance criteria:
No unsafe access
The text was updated successfully, but these errors were encountered:
Steps to reproduce
geli/api/src/models/Course.ts
Line 319 in c016a39
I'm not sure if its possible to force this error somehow (i did but can't remeber how). Code above checks if course.image is not null but not if there is a matching object in file table (not null) before calling toObject.
Acceptance criteria:
The text was updated successfully, but these errors were encountered: