Skip to content

Commit 4c02b17

Browse files
fix(firstMile): makes the nodejs examples write ints instead of floats (#4526)
1 parent 8004ce8 commit 4c02b17

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/homepageExperience/components/steps/nodejs/WriteData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ let writeClient = client.getWriteApi(org, bucket, 'ns')
5757
for (let i = 0; i < 5; i++) {
5858
let point = new Point('measurement1')
5959
.tag('tagname1', 'tagvalue1')
60-
.floatField('field1', i)
60+
.intField('field1', i)
6161
6262
void setTimeout(() => {
6363
writeClient.writePoint(point)

src/homepageExperience/containers/HomepageContainer.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ export const HomepageContainer: FC = () => {
4545
const telegrafPageLink = `/orgs/${org.id}/load-data/telegrafs`
4646
const golangLink = `/orgs/${org.id}/new-user-wizard/go`
4747
const loadDataSourcesLink = `/orgs/${org.id}/load-data/sources`
48-
let javaScriptNodeLink = `/orgs/${org.id}/new-user-wizard/nodejs`
49-
50-
// currently the nodejs library has an intermittent issue writing to buckets
51-
// go to the current node library until we fix that bug
52-
javaScriptNodeLink = `/orgs/${org.id}/load-data/client-libraries/javascript-node`
48+
const javaScriptNodeLink = `/orgs/${org.id}/new-user-wizard/nodejs`
5349

5450
const cardStyle = {minWidth: '200px'}
5551
const linkStyle = {color: InfluxColors.Grey75}

0 commit comments

Comments
 (0)