Skip to content

fix(pinia-orm): null is casted in DateCast #565

Merged
CodeDredd merged 7 commits intoCodeDredd:masterfrom
tklaas:master
Nov 14, 2022
Merged

fix(pinia-orm): null is casted in DateCast #565
CodeDredd merged 7 commits intoCodeDredd:masterfrom
tklaas:master

Conversation

@tklaas
Copy link
Copy Markdown
Contributor

@tklaas tklaas commented Nov 10, 2022

🔗 Linked issue

#546

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

@CodeDredd
Is there a reason, that null values are not allowed for DateCast and instead being converted to a date 1970-01-01T00:00:00.000Z
I used this for my own code and hat it implemented as CustomCast with null values but would like to replace my code now with the included DateCast.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@CodeDredd
Copy link
Copy Markdown
Owner

CodeDredd commented Nov 10, 2022

Looks good. I don't know why i left null out. 🤔 .
Just the docs need to be updated under api. Then its good to merge.
Also it seems some tests are missing for the different usecases.

@CodeDredd CodeDredd added the bug Something isn't working label Nov 14, 2022
@CodeDredd CodeDredd changed the title feat(pinia-orm): allow null values for fields with DateCast fix(pinia-orm): allow null values for fields with DateCast Nov 14, 2022
@CodeDredd CodeDredd changed the title fix(pinia-orm): allow null values for fields with DateCast fix(pinia-orm): allow null for DateCast Nov 14, 2022
@CodeDredd CodeDredd changed the title fix(pinia-orm): allow null for DateCast fix(pinia-orm): null is casted in DateCast Nov 14, 2022
@CodeDredd CodeDredd self-assigned this Nov 14, 2022
@CodeDredd CodeDredd merged commit f101155 into CodeDredd:master Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants