@common_ch/common 1.0.240 → 1.0.241

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.
@@ -20,7 +20,6 @@ export type Messages = {
20
20
  export interface MessageAttrs {
21
21
  userId: string;
22
22
  messageName: string;
23
- assistantChatgptId?: string;
24
23
  planId?: string;
25
24
  threadChatgptId?: string;
26
25
  chatGptTokenNumber?: number;
@@ -41,7 +40,6 @@ export interface MessageDoc extends mongoose.Document {
41
40
  userId: string;
42
41
  messageName: string;
43
42
  planId?: string;
44
- assistantChatgptId?: string;
45
43
  threadChatgptId?: string;
46
44
  chatGptTokenNumber?: number;
47
45
  geminiTokenNumber?: number;
@@ -32,11 +32,6 @@ const messageSchema = new mongoose_1.default.Schema({
32
32
  ref: 'Plan',
33
33
  required: false,
34
34
  },
35
- assistantChatgptId: {
36
- type: String,
37
- required: false,
38
- default: null,
39
- },
40
35
  threadChatgptId: {
41
36
  type: String,
42
37
  required: false,
@@ -111,7 +106,6 @@ const messageSchema = new mongoose_1.default.Schema({
111
106
  // messageSchema.plugin(updateIfCurrentPlugin);
112
107
  messageSchema.index({ 'updatedAt': 1 });
113
108
  messageSchema.index({ 'threadChatgptId': 1 });
114
- // messageSchema.index({ 'assistantChatgptId': 1 });
115
109
  messageSchema.index({ 'userId': 1 });
116
110
  messageSchema.index({ 'threadChatgptId': 1, 'userId': 1 });
117
111
  messageSchema.statics.build = (attrs) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.240",
3
+ "version": "1.0.241",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [