small fix causing 404 error for undefined variable
This commit is contained in:
parent
3f549c4b73
commit
ff6a17d0da
|
|
@ -48,7 +48,7 @@ const getUserHasPlacesListQuery = ({ limit, page, ...rest }) =>
|
||||||
const countUserHasPlacesListQuery = rest =>
|
const countUserHasPlacesListQuery = rest =>
|
||||||
_userHasPlacesSelectQuery()({ count: 'COUNT(DISTINCT(up.uuid)) AS count' })(rest);
|
_userHasPlacesSelectQuery()({ count: 'COUNT(DISTINCT(up.uuid)) AS count' })(rest);
|
||||||
|
|
||||||
const insertUserHasPlacesQuery = ({ user_uuid, place_uuid, description, createdBy, report_type_uuid }) => {
|
const insertUserHasPlacesQuery = ({ user_uuid, place_uuid, description, createdBy, report_type_uuid, images}) => {
|
||||||
const user_uuidCondition = user_uuid ? '(SELECT id FROM dbmaster.users WHERE uuid = :user_uuid)' : null;
|
const user_uuidCondition = user_uuid ? '(SELECT id FROM dbmaster.users WHERE uuid = :user_uuid)' : null;
|
||||||
const place_uuidCondition = place_uuid ? '(SELECT id FROM dbmaster.places WHERE uuid = :place_uuid)' : null;
|
const place_uuidCondition = place_uuid ? '(SELECT id FROM dbmaster.places WHERE uuid = :place_uuid)' : null;
|
||||||
const createdByCondition = createdBy ? ':createdBy' : null;
|
const createdByCondition = createdBy ? ':createdBy' : null;
|
||||||
|
|
@ -83,7 +83,7 @@ const insertUserHasPlacesQuery = ({ user_uuid, place_uuid, description, createdB
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
const modifyUserHasPlacesQuery = ({user_uuid, place_uuid, report_type_uuid, rating}) => {
|
const modifyUserHasPlacesQuery = ({user_uuid, place_uuid, report_type_uuid, rating, images}) => {
|
||||||
const user_uuidCondition = user_uuid ? 'fk_user = (SELECT id FROM dbmaster.users WHERE uuid = :user_uuid),' : ``;
|
const user_uuidCondition = user_uuid ? 'fk_user = (SELECT id FROM dbmaster.users WHERE uuid = :user_uuid),' : ``;
|
||||||
const place_uuidCondition = place_uuid ? 'fk_place = (SELECT id FROM dbmaster.places WHERE uuid = :place_uuid),' : ``;
|
const place_uuidCondition = place_uuid ? 'fk_place = (SELECT id FROM dbmaster.places WHERE uuid = :place_uuid),' : ``;
|
||||||
const report_type_uuidCondition = report_type_uuid ? 'fk_report_type = (SELECT id FROM dbmaster.report_types WHERE uuid = :report_type_uuid),' : ``;
|
const report_type_uuidCondition = report_type_uuid ? 'fk_report_type = (SELECT id FROM dbmaster.report_types WHERE uuid = :report_type_uuid),' : ``;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue