Skip to content

Commit

Permalink
fix: missing route exports
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLzq committed Oct 8, 2023
1 parent 562cb75 commit 875dcd9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/network/mqtt/routes/aq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const sub = (client: MqttClient) => {
})
}

const pH: Route = {
const aq: Route = {
sub,
SUB_TOPIC
}

export { pH }
export { aq }
4 changes: 2 additions & 2 deletions src/network/mqtt/routes/co2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const sub = (client: MqttClient) => {
})
}

const pH: Route = {
const co2: Route = {
sub,
SUB_TOPIC
}

export { pH }
export { co2 }
4 changes: 2 additions & 2 deletions src/network/mqtt/routes/humidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const sub = (client: MqttClient) => {
})
}

const tds: Route = {
const humidity: Route = {
sub,
SUB_TOPIC
}

export { tds }
export { humidity }
4 changes: 4 additions & 0 deletions src/network/mqtt/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export * from './aq'
export * from './co2'
export * from './date'
export * from './humidity'
// eslint-disable-next-line import/extensions
export * from './pm2.5'
export * from './pressure'
export * from './temperature'
6 changes: 4 additions & 2 deletions src/network/mqtt/routes/pm2.5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ const sub = (client: MqttClient) => {
})
}

const pH: Route = {
// eslint-disable-next-line camelcase
const pm2_5: Route = {
sub,
SUB_TOPIC
}

export { pH }
// eslint-disable-next-line camelcase
export { pm2_5 }
4 changes: 2 additions & 2 deletions src/network/mqtt/routes/pressure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const sub = (client: MqttClient) => {
})
}

const pH: Route = {
const pressure: Route = {
sub,
SUB_TOPIC
}

export { pH }
export { pressure }
4 changes: 2 additions & 2 deletions src/network/mqtt/routes/temperature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const sub = (client: MqttClient) => {
})
}

const turbidity: Route = {
const temperature: Route = {
sub,
SUB_TOPIC
}

export { turbidity }
export { temperature }

0 comments on commit 875dcd9

Please sign in to comment.