koishi-plugin-chat-analyse 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -253,7 +253,7 @@ var Collector = class _Collector {
253
253
  }))
254
254
  );
255
255
  }
256
- if (advancedBufferToFlush.length > 0) await this.ctx.database.create("analyse_cache", advancedBufferToFlush);
256
+ if (advancedBufferToFlush.length > 0) await this.ctx.database.upsert("analyse_cache", advancedBufferToFlush);
257
257
  } catch (error) {
258
258
  this.ctx.logger.error("写入数据出错:", error);
259
259
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chat-analyse",
3
3
  "description": "聊天记录分析",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "contributors": [
6
6
  "Yis_Rime <yis_rime@outlook.com>"
7
7
  ],