Compare commits

..

2 Commits

Author SHA1 Message Date
7998d79b13 1.0.56 2019-08-12 15:12:32 +02:00
6838a8729a fix(core): update 2019-08-12 15:12:31 +02:00
4 changed files with 4 additions and 4 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartuniverse",
"version": "1.0.55",
"version": "1.0.56",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartuniverse",
"version": "1.0.55",
"version": "1.0.56",
"private": false,
"description": "messaging service for your micro services",
"main": "dist/index.js",

View File

@ -140,7 +140,7 @@ export class Universe {
this.universeCache,
unauthenticatedMessage
);
if (foundChannel) {
if (foundChannel && unauthenticatedMessage.authenticated) {
const authenticatedMessage = unauthenticatedMessage;
await this.universeCache.addMessage(authenticatedMessage);
}

View File

@ -42,7 +42,7 @@ export class UniverseMessage implements interfaces.IUniverseMessage {
/**
* wether the message is authenticated
*/
public authenticated: boolean = null;
public authenticated: boolean = false;
/**
* a destruction timer for this message