fix: handles undifinied conference

This commit is contained in:
tdurieux
2021-09-07 07:13:50 +02:00
parent 46c27036b8
commit 056e676af2
+2 -1
View File
@@ -286,7 +286,8 @@ export default class Repository {
const conference = await ConferenceModel.findOne({ const conference = await ConferenceModel.findOne({
conferenceID: this._model.conference, conferenceID: this._model.conference,
}); });
return new Conference(conference); if (conference) return new Conference(conference);
return null;
} }
/***** Getters ********/ /***** Getters ********/