Skip to content

Commit

Permalink
fix: Set retention properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Oct 31, 2024
1 parent cfbc3ed commit 277f685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/influxdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class InfluxDBBackend {
}

private async _connect() {
const { host, port, database, username, password } = this.server.config.influxdb
const { host, port, database, retention, username, password } = this.server.config.influxdb

this.host = host
this.port = port
Expand Down Expand Up @@ -142,7 +142,7 @@ export class InfluxDBBackend {
await this.influxClient.createDatabase(this.database)
}
this.isConnected = true
await this._setRetentionPolicy(this.retention)
await this._setRetentionPolicy(retention)
} catch (error) {
this.logger.error(`Unable to connect: ${error}`)
throw error
Expand Down

0 comments on commit 277f685

Please sign in to comment.