Skip to content

Commit bd8bbc7

Browse files
authored
Merge pull request #78 from ExtensionEngine/release/2.4
Issue with repository cloning
2 parents e4b5a42 + c16a041 commit bd8bbc7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailor",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"description": "Course authoring platform",
55
"author": "ExtensionEngine <[email protected]>",
66
"private": true,

server/course/course.model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class Course extends Model {
8080

8181
static updateStats(id, key, value) {
8282
return this.findById(id).then(course => {
83+
if (!course) return;
8384
const stats = course.stats || {};
8485
stats[key] = value;
8586
return course.update({ stats });

0 commit comments

Comments
 (0)