Skip to content

Commit

Permalink
chore: fixed security vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
forscht committed Jan 11, 2023
1 parent 2b0509d commit 10a7d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@forscht/ddrive",
"version": "4.0.0",
"version": "4.0.1",
"description": "A lightweight cloud storage system using discord as storage device written in nodejs",
"main": "src/index.js",
"author": "Darshan Patel <darshanhihoriya@gmail.com> (https://github.com/forscht/ddrive)",
Expand Down
4 changes: 2 additions & 2 deletions src/HTTP/services/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const getDirectory = async (id = null, child = false) => {
`(select json_agg(r) FROM (select "d".*, sum(b.size) as size
from "directory" as "d"
left join "block" as "b" on "d"."id" = "b"."fileId"
where "d"."parentId" = '${id}'
group by "d"."id") r ) as child`,
where "d"."parentId" = ?
group by "d"."id") r ) as child`, [id],
))
}

Expand Down

0 comments on commit 10a7d20

Please sign in to comment.