mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
fix: handles undifinied conference
This commit is contained in:
1 parent
46c27036b8
commit
056e676af2
1 file changed
+2
-1
+2
-1
@@ -286,7 +286,8 @@ export default class Repository {
|
||||
const conference = await ConferenceModel.findOne({
|
||||
conferenceID: this._model.conference,
|
||||
});
|
||||
return new Conference(conference);
|
||||
if (conference) return new Conference(conference);
|
||||
return null;
|
||||
}
|
||||
|
||||
/***** Getters ********/
|
||||
|
||||
Reference in new issue
Block a user