Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PAY-385] Added First Playlist Challenge #3375

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 40 additions & 27 deletions creator-node/package-lock.json

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

3 changes: 2 additions & 1 deletion creator-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:teardown": "./scripts/run-tests.sh teardown",
"test:unit": "./scripts/run-tests.sh unit_test",
"test:coverage": "nyc --reporter=lcov --reporter=text npm run test",
"test:coverage:ci": "nyc --reporter=lcov npm run test:ci && nyc report --reporter=text-lcov | coveralls",
"test:coverage:ci": "nyc --reporter=lcov --reporter=text npm run test:ci && nyc report --reporter=text-lcov | coveralls",
"lint:fix": "eslint --fix --ext=js,ts src",
"lint": "eslint --ext=js,ts src"
},
Expand All @@ -23,6 +23,7 @@
"@bull-board/express": "3.11.0",
"@solana/web3.js": "1.31.0",
"JSONStream": "^1.3.5",
"async-retry": "^1.3.3",
"axios": "^0.19.2",
"base64-url": "^2.3.3",
"bl": "^4.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

/**
* Create index on "Files" ("cnodeUserUUID", "multihash", "clock")
* Used to speed up DBManager.fetchFilesHashFromDB() and DBManager.fetchFilesHashesFromDB()
*/

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.sequelize.query(`
CREATE INDEX IF NOT EXISTS "Files_cnodeUserUUID_multihash_clock_idx"
ON public."Files"
USING btree
("cnodeUserUUID", "multihash", "clock")
`)
},

down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn('CNodeUsers', 'filesHash')
}
};
Loading