diff --git a/package.json b/package.json index b3b3bc22..4c07c9d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cadt", - "version": "1.6.8", + "version": "1.6.11", "_comment": "DONT CHANGE MAJOR UNLESS DATAMODEL CHANGES: The major version corresponds to the datamodel version your using, so 2.0.0 means it'll use datamodel v2", "private": true, "bin": "build/server.js", diff --git a/src/models/file-store/file-store.model.js b/src/models/file-store/file-store.model.js index 353cda7d..721ad1bd 100644 --- a/src/models/file-store/file-store.model.js +++ b/src/models/file-store/file-store.model.js @@ -48,7 +48,7 @@ class FileStore extends Model { static async addFileToFileStore(SHA256, fileName, base64File) { const myOrganization = await Organization.getHomeOrg(); - if (myOrganization) { + if (!myOrganization) { throw new Error('No homeorg detected'); }