Skip to content

Commit

Permalink
Removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ossi Tammi committed Mar 11, 2024
1 parent 0dab369 commit 6167257
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion server/src/application/answer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ export async function getGeoPackageFile(surveyId: number): Promise<Buffer> {
const rows = await getGeometryDBEntries(surveyId);

const srid = rows?.find(row => row.geometrySRID)?.geometrySRID ?? '3857';
console.log(srid);
const checkboxOptions = await getCheckboxOptionsFromDB(surveyId);
const mapLayers = await getSurvey({ id: surveyId }).then((survey) =>
getAvailableMapLayers(survey.mapUrl),
Expand Down
3 changes: 0 additions & 3 deletions server/src/application/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,13 +956,10 @@ export async function updateSurvey(survey: Survey) {
throw new NotFoundError(`Survey with ID ${survey.id} not found`);
}

console.log(survey.pages[0].sidebar.defaultMapView)
// Find out what coordinate system was used for the default map view
const pageWithDefaultMapView = survey.pages.find(page => page.sidebar.defaultMapView);
const defaultMapViewSRID = pageWithDefaultMapView ? parseInt(pageWithDefaultMapView.sidebar.defaultMapView.crs.split(':')[1]) : null;

console.log(defaultMapViewSRID)

// Update the survey pages
await getDb().none(
getMultiUpdateQuery(
Expand Down

0 comments on commit 6167257

Please sign in to comment.