Skip to content

Commit

Permalink
adding updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonFedotov committed May 19, 2017
1 parent e6f78d4 commit 67a145b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/import_camps_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ function main(argv) {
} else {
if (camp_name_en && camp_name_he) {
console.log("inserting new camp " + camp_name_en);
_camp_rec.create_at=(new Date()).toISOString().substring(0, 19).replace('T', ' ');
_camp_rec.create_at = (new Date()).toISOString().substring(0, 19).replace('T', ' ');
_camp_rec.updated_at = (new Date()).toISOString().substring(0, 19).replace('T', ' ');

return knex(constants.CAMPS_TABLE_NAME).insert(_camp_rec).then(function () {
console.log("inserted camp: " + camp_name_en);
Expand Down

0 comments on commit 67a145b

Please sign in to comment.