@synconset/factory-girl-typeorm
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -20,3 +20,3 @@ class TypeOrmAdapter { | ||
return manager.transaction(async (tm) => { | ||
if (this.connection.type === 'sqlite') { | ||
if (this.connection.options.type === 'sqlite') { | ||
await tm.query('PRAGMA foreign_keys = OFF;'); | ||
@@ -27,3 +27,3 @@ } else { | ||
await tm.delete(Model, model.id); | ||
if (this.connection.type === 'sqlite') { | ||
if (this.connection.options.type === 'sqlite') { | ||
return tm.query('PRAGMA foreign_keys = ON;'); | ||
@@ -30,0 +30,0 @@ } else { |
{ | ||
"name": "@synconset/factory-girl-typeorm", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Typeorm adapter for factory-girl", | ||
@@ -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
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
3155