@wrcb/cb-common 1.0.31 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ class Publisher {
11
11
  if (err) {
12
12
  return reject(err);
13
13
  }
14
- console.log('Event published - ', this.subject);
15
14
  resolve();
16
15
  });
17
16
  });
@@ -6,6 +6,7 @@ export interface PredictionStartedEvent {
6
6
  title: string;
7
7
  description: string;
8
8
  version: number;
9
+ deadLine: Date;
9
10
  market: {
10
11
  id: string;
11
12
  title: string;
@@ -9,7 +9,7 @@ const currentUser = (req, res, next) => {
9
9
  var _a;
10
10
  // vamos apenas descobrir se o usuario esta logado. se estiver, vamos extrair o payload
11
11
  // e setar no currentUser property
12
- // se não tiver logado, outro middleware irá retornar um erro
12
+ // se não tiver logado, outro middleware irá retornar um erro.
13
13
  if (!((_a = req.session) === null || _a === void 0 ? void 0 : _a.jwt)) {
14
14
  return next();
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",