Skip to content

Commit

Permalink
Merge pull request #1132 from ONEARMY/fix/backup-user
Browse files Browse the repository at this point in the history
Minor fix to user backup function
  • Loading branch information
chrismclarke authored Apr 26, 2021
2 parents bb84616 + 93ae42e commit ac3f9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/userUpdates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { backupUser } from './backupUser'
export const handleUserUpdates = functions.firestore
.document(`${DB_ENDPOINTS.users}/{id}`)
.onUpdate(async (change, context) => {
await processCountryUpdates(change)
await backupUser(change)
await processCountryUpdates(change)
})

async function processCountryUpdates(change: IDBDocChange) {
Expand Down

0 comments on commit ac3f9c8

Please sign in to comment.