Skip to content

fix: Use zod to coerce duration - #829

Merged
FoxxMD merged 2 commits into
masterfrom
durationCoerce
Dec 5, 2026
Merged

FoxxMD merged 2 commits into
masterfrom
durationCoerce

Conversation

@FoxxMD

@FoxxMD FoxxMD commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Checklist before requesting a review

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Describe your changes

Deezer can report either a number or a string for duration. This was being saved incorrectly to the database which caused zod validation failure when retrieved.

  • Fix deezer obj.DURATION by coercing to a number
  • Use zod codec to fix existing duration-as-string scenarios at runtime

Issue number and link, if applicable

#826

* refactor string-to-number zod function a codec so its bidrectional
* fixes, at runtime, any db persisted duration values that are strings

#826
@netlify

netlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for multi-scrobbler ready!

Name Link
🔨 Latest commit ce83ab4
🔍 Latest deploy log https://app.netlify.com/projects/multi-scrobbler/deploys/6b12df3e9a78b8b1eeee70a9
😎 Deploy Preview https://deploy-preview-829--multi-scrobbler.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

📦 A new release has been made for this pull request.

To play around with this PR, pull an image:

  • foxxmd/multi-scrobbler:pr-829
  • ghcr.io/foxxmd/multi-scrobbler:pr-829

Debug variants with a shell and curl are available by adding the -debug suffix, EX pr-829-debug

Images are available for x86_64 and ARM64.

Latest commit: ce83ab4

@FoxxMD
FoxxMD merged commit 885b19f into master Dec 5, 2026
7 checks passed
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.

1 participant