kstulgys
kstulgys
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
I've been posting to this endpoint without content-type: application/json header before.
10 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
deposit: publicProcedure.input(z.any()).mutation(({ ctx, input }) => {
console.log(input);
return { input };
}),
deposit: publicProcedure.input(z.any()).mutation(({ ctx, input }) => {
console.log(input);
return { input };
}),
{
"result": {
"data": {
"input": {
"hello": "world"
}
}
}
}
{
"result": {
"data": {
"input": {
"hello": "world"
}
}
}
}
10 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
actually it's working, all good
10 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
well, same thing without transformer:
{
"result": {
"data": {}
}
}
{
"result": {
"data": {}
}
}
10 replies