fixed queries from favorites
This commit is contained in:
parent
1c55d0e4e0
commit
413ec9cfee
|
|
@ -9,9 +9,13 @@ const _favoritesQuery = (_pagination = '') => ({count}) => ({uuid, place_uuid, u
|
||||||
${count ||
|
${count ||
|
||||||
`r.*,
|
`r.*,
|
||||||
place.uuid as place_uuid,
|
place.uuid as place_uuid,
|
||||||
p.action as permission_action,
|
|
||||||
p.uuid as user_uuid,
|
p.uuid as user_uuid,
|
||||||
p.fk_endpoint as permission_endpoint`}
|
place.name as place_name,
|
||||||
|
place.address as place_address,
|
||||||
|
place.latitude as place_latitude,
|
||||||
|
place.longitude as place_longitude,
|
||||||
|
place.description as place_description
|
||||||
|
p.username as user_username`}
|
||||||
FROM
|
FROM
|
||||||
dbmaster.favorites as r
|
dbmaster.favorites as r
|
||||||
JOIN
|
JOIN
|
||||||
|
|
@ -56,7 +60,7 @@ const insertFavoritesQuery = () => {
|
||||||
:now,
|
:now,
|
||||||
:createdBy
|
:createdBy
|
||||||
);
|
);
|
||||||
SELECT favorites.*,
|
SELECT f.*,
|
||||||
users.uuid as user_uuid,
|
users.uuid as user_uuid,
|
||||||
places.uuid as place_uuid,
|
places.uuid as place_uuid,
|
||||||
places.name as role_name
|
places.name as role_name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue