Skip to content

Commit

Permalink
fix(plugin-server): add time component to person.force_upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner committed Apr 26, 2024
1 parent d77bae8 commit baf1b2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin-server/src/worker/ingestion/person-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ export class PersonState {
// Ensure person properties don't propagate elsewhere, such as onto the event itself.
person.properties = {}

// See documentation on the field.
person.force_upgrade = true
if (person.created_at.diff(this.timestamp).as('hours') > 1) {
// See documentation on the field.
person.force_upgrade = true
}

return person
}
Expand Down

0 comments on commit baf1b2e

Please sign in to comment.