Permalink
Browse files

Clear db of user data when wasapi syncing; resolves #201.

- Update Archive-It wasapi sync job
- Update TravisCI to test newer Ruby version
- Ran npm audit fix; update package.json
  • Loading branch information...
ruebot committed Nov 1, 2018
1 parent cceaceb commit 54663422c7559567d42114e60e99cf60375840de
Showing with 6 additions and 4 deletions.
  1. +3 −3 .travis.yml
  2. +2 −0 app/jobs/wasapi_seed_job.rb
  3. +1 −1 package.json
@@ -8,8 +8,8 @@ before_install:
before_script:
- cp config/application.yml.example config/application.yml
rvm:
- 2.4.2
- 2.3.5
- 2.2.8
- 2.4.5
- 2.3.8
- 2.2.10
cache: bundler
script: bundle exec rake
@@ -29,6 +29,8 @@ def perform(user)
queue: 'seed',
start_time: DateTime.now.utc
)
WasapiFile.where(user_id: user.id).destroy_all
Collection.where(user_id: user.id).destroy_all
wasapi_files.each do |file|
WasapiFile.find_or_create_by!(
filename: file['filename'],
@@ -3,7 +3,7 @@
"description": "",
"main": "index.js",
"dependencies": {
"npm": "^6.3.0"
"npm": "^6.4.1"
},
"devDependencies": {
"babel-eslint": "^8.2.3",

0 comments on commit 5466342

Please sign in to comment.