Comparing version 1.0.0 to 1.0.1
@@ -70,14 +70,14 @@ 'use strict'; | ||
return this.db.connection.transaction(transaction => { | ||
return this.db.models.Courseware.StudentModule | ||
.findAll(query) | ||
.then(rows => { | ||
const ids = rows.map(row => row.get('id')); | ||
return this.db.models.Courseware.StudentModule | ||
.findAll(query) | ||
.then(rows => { | ||
const ids = rows.map(row => row.get('id')); | ||
if (!ids.length) { | ||
debug('nothing was found, nor destroyed'); | ||
if (!ids.length) { | ||
debug('nothing was found, nor destroyed'); | ||
return; | ||
} | ||
return; | ||
} | ||
return this.db.connection.transaction(transaction => { | ||
return this.db.models.Courseware.StudentModuleHistory | ||
@@ -113,5 +113,5 @@ .destroy({ | ||
}); | ||
}) | ||
.thenReturn(result); | ||
}); | ||
}); | ||
}) | ||
.thenReturn(result); | ||
} | ||
@@ -118,0 +118,0 @@ }; |
{ | ||
"name": "edx-db", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Open edX database library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25961
25
683
1