Skip to content

Commit 83854b9

Browse files
Merge pull request #336 from HathorNetwork/dev
Release v0.22.0-alpha
2 parents 1a5a75b + bcd6aa2 commit 83854b9

39 files changed

+6918
-496
lines changed

.eslintrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ rules:
2020
- 2
2121
- commonjs: true
2222
amd: true
23+
ignore: ['.json$']
2324
max-len:
2425
- error
2526
- code: 150

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ coverage
2020
# open files
2121
*.swp
2222
*.swo
23+
24+
# fcm account config
25+
**/fcm.config.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use strict';
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
async up(queryInterface) {
6+
queryInterface.removeColumn('push_devices', 'enable_only_new_tx');
7+
},
8+
9+
async down(queryInterface, Sequelize) {
10+
queryInterface.addColumn('push_devices', 'enable_only_new_tx', {
11+
type: Sequelize.BOOLEAN,
12+
allowNull: false,
13+
defaultValue: false,
14+
});
15+
},
16+
};

db/models/pushdevices.js

-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ module.exports = (sequelize, DataTypes) => {
4141
allowNull: false,
4242
defaultValue: false,
4343
},
44-
enable_only_new_tx: {
45-
type: DataTypes.BOOLEAN,
46-
allowNull: false,
47-
defaultValue: false,
48-
},
4944
updated_at: {
5045
type: 'TIMESTAMP',
5146
allowNull: false,

jest.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ module.exports = {
77
'^@events/(.*)$': '<rootDir>/events/$1',
88
},
99
setupFiles: ['./tests/jestSetup.ts'],
10+
testPathIgnorePatterns: [
11+
'<rootDir>/tests/utils/pushnotification.utils.boundary.test.ts',
12+
'<rootDir>/dist/',
13+
],
1014
coveragePathIgnorePatterns: ['/node_modules/', '/tests/utils.ts'],
1115
coverageThreshold: {
1216
global: {

0 commit comments

Comments
 (0)