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

Commit b4ba11b0 authored by Nikolas Tilley's avatar Nikolas Tilley
Browse files

Put back the WHERE TRUE and left comments why

The where true is needed so extra where clauses can be appended onto the
end of the find query
parent 85d1c869
......@@ -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