Skip to content

Commit

Permalink
Merge pull request #1906 from OriginTrail/v6/develop
Browse files Browse the repository at this point in the history
OriginTrail 6.0.0-beta.1.34-hotfix.3 Testnet Prerelease Hotfix
  • Loading branch information
kotlarmilos authored Apr 7, 2022
2 parents d879181 + 734120d commit fdfe53d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ot-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Logger = require('./modules/logger/logger');
const constants = require('./modules/constants');
const pjson = require('./package.json');
const configjson = require('./config/config.json');
const appRootPath = require('app-root-path');

class OTNode {
constructor(config) {
Expand Down Expand Up @@ -83,7 +82,6 @@ class OTNode {
repository: 'https://github.com/OriginTrail/ot-node',
branch: this.config.autoUpdate.branch,
tempLocation: this.config.autoUpdate.backupDirectory,
executeOnComplete: `cd ${appRootPath.path} && npx sequelize --config=./config/sequelizeConfig.js db:migrate`,
exitOnComplete: true,
};

Expand Down Expand Up @@ -122,6 +120,7 @@ class OTNode {
this.logger.info('Operational database module: sequelize implementation');
// eslint-disable-next-line global-require
const db = require('./models');
execSync('npx sequelize --config=./config/sequelizeConfig.js db:migrate');
await db.sequelize.sync();
} catch (e) {
this.logger.error({
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "6.0.0-beta.1.34-hotfix.2",
"version": "6.0.0-beta.1.34-hotfix.3",
"description": "OTNode v6 Beta 1",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fdfe53d

Please sign in to comment.