@cocreate/crud-server
Advanced tools
Comparing version
@@ -0,1 +1,8 @@ | ||
## [1.20.3](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.20.2...v1.20.3) (2023-05-10) | ||
### Bug Fixes | ||
* return resolve ([eafc5e5](https://github.com/CoCreate-app/CoCreate-crud-server/commit/eafc5e59c59e3a3835a85b6e46a164f11fc6a80b)) | ||
## [1.20.2](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.20.1...v1.20.2) (2023-05-07) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/crud-server", | ||
"version": "1.20.2", | ||
"version": "1.20.3", | ||
"description": "CoCreate-crud-server", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -101,7 +101,7 @@ 'use strict'; | ||
if (!data.organization_id) | ||
resolve() | ||
return resolve() | ||
let dbUrl = this.databaseUrls.get(data.organization_id) | ||
if (dbUrl === 'false' || dbUrl === false) | ||
resolve() | ||
if (dbUrl === false) | ||
return resolve({dbUrl: false, error: 'database url could not be found'}) | ||
@@ -126,5 +126,7 @@ if (!dbUrl) { | ||
} else { | ||
this.databaseUrls.set(data.organization_id, 'false') | ||
console.log('organization or dbUrl urls could not be found') | ||
resolve() | ||
this.databaseUrls.set(data.organization_id, false) | ||
if (organization) | ||
return resolve({dbUrl: false, error: 'database url could not be found'}) | ||
else | ||
return resolve({organization: false, error: 'organization could not be found'}) | ||
} | ||
@@ -131,0 +133,0 @@ } |
93875
0.45%364
0.55%