Ayato
Ayato
Explore posts from servers
CDCloudflare Developers
Created by Ayato on 8/23/2024 in #general-help
Tunnel SSH SetUp Help
Thanks anyway
9 replies
CDCloudflare Developers
Created by Ayato on 8/23/2024 in #general-help
Tunnel SSH SetUp Help
Hmm ok, too bad
9 replies
CDCloudflare Developers
Created by Ayato on 8/23/2024 in #general-help
Tunnel SSH SetUp Help
if it is really necessary I could replace the xxxx with my url, but I don’t know how that would help
9 replies
CDCloudflare Developers
Created by Ayato on 8/23/2024 in #general-help
Tunnel SSH SetUp Help
What am I not showing? Do you mean the url?
9 replies
CDCloudflare Developers
Created by Ayato on 8/23/2024 in #general-help
Tunnel SSH SetUp Help
Just a typo here on discord, everything has .dev
9 replies
CDCloudflare Developers
Created by Ayato on 8/23/2024 in #general-help
Tunnel SSH SetUp Help
pi@raspberrypi:~ $ stat /usr/local/bin/cloudflared
File: /usr/local/bin/cloudflared -> /usr/bin/cloudflared
pi@raspberrypi:~ $ stat /usr/local/bin/cloudflared
File: /usr/local/bin/cloudflared -> /usr/bin/cloudflared
9 replies
TTCTheo's Typesafe Cult
Created by Ayato on 6/14/2023 in #questions
YouTube Data API
Ohh yea, that worked, thank you very much, do you know why the above method works for some but not for all?
7 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/17/2023 in #questions
tRPC Mutation
Ahh, thanks
7 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/15/2023 in #questions
<Select onChange()>
Thanks
4 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/13/2023 in #questions
typescript-eslint
2 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/5/2023 in #questions
findUnique from current user
I will take a look
11 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/4/2023 in #questions
getById from current user
41 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/5/2023 in #questions
findUnique from current user
yes, but if another user gets the id he could delete it. Is that securety wise ok?
11 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/5/2023 in #questions
findUnique from current user
I think findFirst sounds fine, but it is getting worse, when we get to update or delete, because I would have to use deleteMany to put in multiple filter.
// Delete a deposit by id for the current user
delete: protectedProcedure
.input(z.object({ id: z.string() }))
.query(async ({ ctx, input }) => {
const deposit = await ctx.prisma.deposit.deleteMany({
where: {
id: input.id,
userId: ctx.session.user.id,
},
});
return deposit;
}),
// Delete a deposit by id for the current user
delete: protectedProcedure
.input(z.object({ id: z.string() }))
.query(async ({ ctx, input }) => {
const deposit = await ctx.prisma.deposit.deleteMany({
where: {
id: input.id,
userId: ctx.session.user.id,
},
});
return deposit;
}),
11 replies
TTCTheo's Typesafe Cult
Created by Ayato on 4/4/2023 in #questions
getById from current user
yes ofc, but it feels a but sloppy, just because I know the id of a privat massage of yours I don't think I could request it.
41 replies