Skip to content

Commit

Permalink
fix: exportCurrentUser
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed Jun 4, 2024
1 parent 561fdd5 commit 54472cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/web-chat-x-vue/src/classes/DatabaseManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,13 @@ export class DatabaseManager {
exportCurrentUserDB = async () => {
try {
const blobs = [] as Array<Blob>;
const activatedUserDb = await exportDB(this.activatedUserDb);
const currentUser = await this.getCurrentUserInfo();
const activatedUserDb = await this.exportDatabase(
"webChatX@" + currentUser.id
);
// const publicDb = await exportDB(this.publicDb);
// blobs.push(activatedUserDb, publicDb);
blobs.push(activatedUserDb);
const currentUser = await this.getCurrentUserInfo();
const combinedBlob = await this.combineMultipleBlobs(blobs);
const file = new File(
[combinedBlob],
Expand Down
2 changes: 1 addition & 1 deletion prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ scrape_configs:
- targets: ["web-chat-x-express:8099"] # 实际的 libp2p 节点指标端口
metrics_path: /metrics

- job_name: "webRTC"
- job_name: "webrtc-internals-exporter"
static_configs:
- targets: ["pushgateway:9091"]

0 comments on commit 54472cb

Please sign in to comment.