mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 05:38:09 +02:00
fix: handles undifinied conference
This commit is contained in:
+2
-1
@@ -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 ********/
|
||||||
|
|||||||
Reference in New Issue
Block a user