Skip to content

Commit

Permalink
chore: ajoute anonymisation phone dans le followup (#4051)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic authored Oct 30, 2023
1 parent fb73a35 commit f655880
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cleaner-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function anonymizeSimulation(simulation) {

export function anonymizeFollowup(followup) {
followup.email = undefined
followup.phone = undefined
followup.error = undefined

return followup
}
2 changes: 1 addition & 1 deletion tools/cleaner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function main() {
let followup_count = 0
const followupsCursor = await Followups.find({
createdAt: { $lt: aMonthAgo },
email: { $exists: true },
$or: [{ email: { $exists: true } }, { phone: { $exists: true } }],
})
.sort({ _id: -1 })
.cursor()
Expand Down

0 comments on commit f655880

Please sign in to comment.