Skip to content

Commit

Permalink
Merge pull request #1057 from ONEARMY/feat/972CountryFlagAtUSername
Browse files Browse the repository at this point in the history
Show new flag on howtos @ user update
  • Loading branch information
BenGamma authored Oct 13, 2020
2 parents ee620aa + 55b244a commit 88d2a90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions/src/userUpdates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ async function updateHowTosCountry(
querySnapshot.forEach(doc => {
console.log('Updating howTo ', doc.data()._id, 'to', country)
doc.ref
.update({ creatorCountry: country })
.update({
creatorCountry: country,
_modified: new Date().toISOString(),
})
.then(() => {
console.log('Document successfully updated!')
return true
Expand Down

0 comments on commit 88d2a90

Please sign in to comment.