()
| 99 | } |
| 100 | |
| 101 | loadRandomSessions () { |
| 102 | if (!this.sessionOne || !this.sessionTwo) { |
| 103 | return this.fetchRandomSessionPair((err, data) => { |
| 104 | if (err != null) { return console.log(`There was an error fetching the random session pair: ${data}`) } |
| 105 | this.setSessions(data[0]._id, data[1]._id) |
| 106 | return this.load() |
| 107 | }) |
| 108 | } else { |
| 109 | return this.load() |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | setLevel (level, supermodel) { |
| 114 | this.level = level |
no test coverage detected