Skip to content

Commit

Permalink
Change to yarn instead of npm
Browse files Browse the repository at this point in the history
- fix lint
  • Loading branch information
dozoisch committed Oct 30, 2021
1 parent f6d2664 commit 0999588
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/standard-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
cache: 'npm'

- name: Install dependencies
run: npm ci
run: yarn install --frozen-lockfile

- name: Build
run: npm run build
run: yarn build

- name: Test
run: npm mocha
run: yarn mocha

- name: Lint
run: npm run lint
run: yarn lint

6 changes: 3 additions & 3 deletions lib/routes/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,16 +543,16 @@ const routes = function (config) {

for (const file of files) {
const fileContent = file.data.toString('utf8');
const lines = fileContent.split('\n').map(line => line.trim()).filter(Boolean);
const lines = fileContent.split('\n').map((line) => line.trim()).filter(Boolean);
for (const line of lines) {
try {
const parsedData = EJSON.parse(line)
const parsedData = EJSON.parse(line);
docs = docs.concat(parsedData);
} catch (err) {
res.status(400).send('Bad file content');
return;
}
}
}
}

req.collection.insert(docs).then((stats) => {
Expand Down
6 changes: 3 additions & 3 deletions lib/scripts/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ $(() => {
processData: false, // Don't process the files
contentType: false, // Set content type to false as jQuery will tell the server its a query string request
})
.done(function (res) {
alert(res);
});
.done(function (res) {
alert(res);
});
});
});
6 changes: 3 additions & 3 deletions lib/scripts/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ $(() => {
processData: false, // Don't process the files
contentType: false, // Set content type to false as jQuery will tell the server its a query string request
})
.done(function (res) {
alert(res);
});
.done(function (res) {
alert(res);
});
});
});

0 comments on commit 0999588

Please sign in to comment.