-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
16 changed files
with
17,330 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Add issue to project | ||
on: | ||
issues: | ||
types: [opened] | ||
pull_request: | ||
types: [opened] | ||
jobs: | ||
add-to-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Add issue to project | ||
uses: actions/add-to-project@v0.5.0 | ||
with: | ||
github_token: ${{ secrets.PENNAI_TOKEN }} | ||
project_url: https://github.com/orgs/EpistasisLab/projects/9 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const db = require("./db").db; | ||
|
||
async function deleteFilesFromGridstore(files) { | ||
try { | ||
let filesP = []; | ||
let filesDeleted = 0; | ||
|
||
for (let i = 0; i < files.length; i++) { | ||
let gfs = new db.GridStore(db, files[i]._id, 'w', { | ||
promiseLibrary: Promise | ||
}); | ||
filesP.push(gfs.unlinkAsync().then(() => { | ||
filesDeleted++; | ||
})); | ||
} | ||
|
||
await Promise.all(filesP); | ||
return filesDeleted; | ||
} catch (err) { | ||
console.log(err); | ||
throw err; | ||
} | ||
} | ||
|
||
module.exports = { | ||
deleteFilesFromGridstore | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.