Skip to content

Commit

Permalink
fix is-alive endpoint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKingKong committed Apr 11, 2022
1 parent 3d34027 commit e45ab3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function release({
patch = Number(patch) + 1;
}
const newVersionNumber = `${major}.${minor}.${patch}`;
const versionTag = `v${newVersionNumber}`;
const versionTag = `${newVersionNumber}`;
packageJson.version = newVersionNumber;
console.log(`new version: ${newVersionNumber}`);
await fs.writeFile(resolve(__dirname, packageJsonPath), JSON.stringify(packageJson, null, 4));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ringcentral-google-drive-notification-add-in",
"version": "0.1.2",
"version": "0.1.4",
"description": "RingCentral Add-In App",
"keywords": [
"RingCentral",
Expand Down
3 changes: 1 addition & 2 deletions src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require('path');
const packageJson = require('../../package.json');
const { extendApp } = require('ringcentral-chatbot-core');

const { botHandler } = require('./handlers/botHandler');
Expand Down Expand Up @@ -30,7 +29,7 @@ exports.appExtend = (app) => {
app.listen(process.env.RINGCENTRAL_CHATBOT_EXPRESS_PORT);
}

app.get('/is-alive', (req, res) => { res.send(packageJson.version); });
app.get('/is-alive', (req, res) => { res.send('OK'); });

console.log('server running...');
console.log(`bot oauth uri: ${process.env.RINGCENTRAL_CHATBOT_SERVER}${botConfig.botRoute}/oauth`);
Expand Down

0 comments on commit e45ab3b

Please sign in to comment.