Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAI-6042: replace epochs with timestamps in jsonb fields #133

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Conversation

ted-faros
Copy link
Contributor

Description

For jsonb fields, recursively replace epochs. For purpose of this function, an epochs is a number with a property name that ends with 'At'.

Type of change

  • Bug fix
  • New feature
  • Breaking change

@sonarcloud
Copy link

sonarcloud bot commented Apr 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Collaborator

@ypc-faros ypc-faros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 🔥 🔥

@ted-faros ted-faros merged commit 307b87a into main Apr 27, 2023
4 checks passed
@ted-faros ted-faros deleted the tt/fix-ts branch April 27, 2023 15:05
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2023
): any {
const toDateIfNeeded =
(_v: any, _k: string): any => {
const isEpoch = _k.endsWith('At') && typeof _v === 'number';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a hack

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants