Skip to content

Commit

Permalink
patch: add timestamp to survey data
Browse files Browse the repository at this point in the history
  • Loading branch information
atton16 committed Dec 31, 2019
1 parent f6bcf96 commit 433e629
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/survey/enketo-survey-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ angular.module('emission.enketo-survey.service', [
function _saveData() {
const data = {
survey_result: __form.getDataStr(),
timestamp: new Date(),
};
if (__trip && __trip.data.properties) {
data.start_ts = __trip.data.properties.start_ts;
Expand Down

0 comments on commit 433e629

Please sign in to comment.