IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Unverified Commit a2593fd4 authored by Edward W's avatar Edward W Committed by GitHub
Browse files

Merge pull request #72 from my-conservation-life/fixing_asset_query

Put back the WHERE TRUE and left comments why
parents 85d1c869 b4ba11b0
......@@ -14,7 +14,10 @@ FROM
JOIN project ON asset.project_id = project.id
JOIN sponsor ON project.sponsor_id = sponsor.id
JOIN asset_type ON asset.asset_type_id = asset_type.id
`;
WHERE
TRUE
`; // The WHERE TRUE is needed for the find function to append WHERE clauses properly
/**
* Find project assets.
......@@ -142,4 +145,3 @@ module.exports = {
find,
create
};
......@@ -16,7 +16,7 @@ const QUERY_FIND = `
project
WHERE
TRUE
`;
`; // The WHERE TRUE is needed for the find function to append WHERE clauses properly
// A query to create a new project in the database
const QUERY_CREATE = `
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment