Greenman999
Explore posts from serversHow to prevent Server Error if no req body?
Hi I have this code:
If no json is passed in the body i get this error:
[ERROR] SyntaxError: Unexpected end of JSON input
Is there anyway to replace this with my own error message?
Like the one in my code ^ ?5 replies
custom css classes not applied somehow
Hi,
i have this code:
alert.type
is success
and with daisyui and tailwindcss the div should have a green background color. However the div is colored like default just like alert-success
wasnt there. If i manually add alert-success
to the class prop it works. If I remove it after the concatinated version works somehow..
Can someone help me?2 replies
Display relative time as signal
Hi,
I want to display the relative time of a date. I have this file:
but if i run the
relativeTimeFromDates(new Date(2024, 9, 19, 14, 30))
inside of the html part it does not update when a minute more has passed and the output of the function should change. Solid does not react to this. How can i fix this? Do i need to wrap the function in something?
Thanks!7 replies
DTDrizzle Team
•Created by Greenman999 on 6/21/2024 in #help
`Argument of type 'SQL<unknown>' is not assignable to parameter of type 'IndexColumn'.`
Hello I am creating a schema like this guide (https://orm.drizzle.team/learn/guides/unique-case-insensitive-email) but i get the error in the title on
.on(lower(table.email))
.
This is my code:
2 replies