From e9738fc6c65f3206bf48e68a9349ffaac23b4fd3 Mon Sep 17 00:00:00 2001 From: liu0x54 Date: Fri, 31 Jul 2020 06:11:05 +0000 Subject: [PATCH] [TD-1001] update the nodejs examples --- tests/examples/nodejs/node-example-raw.js | 2 +- tests/examples/nodejs/node-example.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/examples/nodejs/node-example-raw.js b/tests/examples/nodejs/node-example-raw.js index 71425a8986..a644051ce1 100644 --- a/tests/examples/nodejs/node-example-raw.js +++ b/tests/examples/nodejs/node-example-raw.js @@ -5,7 +5,7 @@ */ // Get the td-connector package -const taos = require('td-connector'); +const taos = require('td2.0-connector'); /* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the * connection to the variable conn diff --git a/tests/examples/nodejs/node-example.js b/tests/examples/nodejs/node-example.js index 117977cc4f..ce77af9d7c 100644 --- a/tests/examples/nodejs/node-example.js +++ b/tests/examples/nodejs/node-example.js @@ -1,7 +1,7 @@ /* This example is to show the preferred way to use the td-connector */ /* To run, enter node path/to/node-example.js */ // Get the td-connector package -const taos = require('td-connector'); +const taos = require('td2.0-connector'); /* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the * connection to the variable conn