Skip to content

Commit

Permalink
cast district_id as string
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasholderness committed Jan 22, 2018
1 parent ba81148 commit b24a6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/routes/floods/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default (config, db, logger) => ({
allGeo: (city, minimumState) => new Promise((resolve, reject) => {
// Setup query
let query = `SELECT la.the_geom, la.pkey as area_id, la.geom_id,
la.area_name, la.parent_name, la.city_name, la.district_id, rs.state, rs.last_updated
la.area_name, la.parent_name, la.city_name, la.district_id::varchar, rs.state, rs.last_updated
FROM ${config.TABLE_LOCAL_AREAS} la
${minimumState ? 'JOIN' : 'LEFT JOIN'}
(SELECT local_area, state, last_updated FROM ${config.TABLE_REM_STATUS}
Expand Down

0 comments on commit b24a6cd

Please sign in to comment.