@common_ch/common 1.0.365 → 1.0.367

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.
@@ -18,10 +18,8 @@ const redis_service_1 = require("../services/redis/redis.service");
18
18
  const currentUserSocket = (token) => __awaiter(void 0, void 0, void 0, function* () {
19
19
  try {
20
20
  const isTokenBlocked = yield (0, redis_service_1.getCacheTokenAuth)(token);
21
- console.log({ isTokenBlocked, key: process.env.JWT_KEY });
22
21
  if (!isTokenBlocked) {
23
22
  const payload = jsonwebtoken_1.default.verify(token, process.env.JWT_KEY);
24
- console.log({ payload });
25
23
  return payload;
26
24
  }
27
25
  else {
@@ -1,4 +1,6 @@
1
1
  import mongoose, { Types } from 'mongoose';
2
+ import { AiDoc } from './ai';
3
+ import { AiOptionDoc } from './ai-option';
2
4
  export interface DefaultsUserAttrs {
3
5
  userId: Types.ObjectId;
4
6
  aiOptionId: Types.ObjectId;
@@ -9,8 +11,8 @@ export interface DefaultsUserAttrs {
9
11
  export interface DefaultsUserDoc extends mongoose.Document {
10
12
  _id: Types.ObjectId;
11
13
  userId: Types.ObjectId;
12
- aiOptionId: Types.ObjectId;
13
- aiId: Types.ObjectId;
14
+ aiOptionId: Types.ObjectId | AiOptionDoc;
15
+ aiId: Types.ObjectId | AiDoc;
14
16
  version: number;
15
17
  createdAt?: number;
16
18
  updatedAt?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.365",
3
+ "version": "1.0.367",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [