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

[bugfix] - Convert data to string before setting cache #906

Merged
merged 6 commits into from
Sep 21, 2023
Merged

Conversation

dev-jotape
Copy link
Collaborator

@dev-jotape dev-jotape commented Sep 19, 2023

This PR fixes #gh-issue-number

Changes

Redis was crashing on trying to convert arrays to strings to save on the cache. So, we are first converting the data to string before calling the redis.set().
Additionally, we add the library typia to start some experiments. First we are using the typia.stringify and typia.isParse on redis middleware.

Tests

Joao Pedro da Silva added 2 commits September 19, 2023 14:10
"prettier": "3.0.0",
"ts-node": "10.9.1",
"ts-patch": "3.0.2",
"typescript": "5.2.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, I think you don't need typescript here since you have it on dependencies

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you are right!

@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 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

@dev-jotape dev-jotape merged commit 558ddb8 into main Sep 21, 2023
6 checks passed
@dev-jotape dev-jotape deleted the fix/redis branch September 21, 2023 13:13
vibern0 pushed a commit that referenced this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants