fasm
fasm
Explore posts from servers
CDCloudflare Developers
Created by fasm on 1/24/2024 in #general-help
KV API giving FormData errors
also the docs don't say how to add expirations?
6 replies
CDCloudflare Developers
Created by fasm on 1/24/2024 in #general-help
KV API giving FormData errors
No it's not. I solved this by removing the 'Content-Type' header. Not sure why it's there in the docs?
6 replies
DTDrizzle Team
Created by fasm on 11/2/2023 in #help
Slow queries with relationships
No description
2 replies
DTDrizzle Team
Created by fasm on 5/31/2023 in #help
update multiple rows
works perfectly, thank you!!
28 replies
DTDrizzle Team
Created by fasm on 5/31/2023 in #help
update multiple rows
amazing, thank you so much!! Let me give this a go new
28 replies
DTDrizzle Team
Created by fasm on 5/31/2023 in #help
update multiple rows
this is what I currently have..
28 replies
DTDrizzle Team
Created by fasm on 5/31/2023 in #help
update multiple rows
type NewPosition = {
id: number,
position: number
}
export const updateLinkPositions = async (newPositions: NewPosition[]) => {
const promises = newPositions.map(({ id, position }) => {
return db.update(linksTable).set({ position }).where(eq(linksTable.id, id))
})
return Promise.all(promises)
}
type NewPosition = {
id: number,
position: number
}
export const updateLinkPositions = async (newPositions: NewPosition[]) => {
const promises = newPositions.map(({ id, position }) => {
return db.update(linksTable).set({ position }).where(eq(linksTable.id, id))
})
return Promise.all(promises)
}
28 replies
DTDrizzle Team
Created by fasm on 5/31/2023 in #help
update multiple rows
thanks for getting back to me. I want do this by row ID as an identifier, not sure how to use the where statement like that.
28 replies
TTCTheo's Typesafe Cult
Created by fasm on 5/23/2023 in #questions
Clerk: auth() was called but it looks like you aren't using authMiddleware in your middleware file
and you upgrade it globally
13 replies
TTCTheo's Typesafe Cult
Created by fasm on 5/23/2023 in #questions
Clerk: auth() was called but it looks like you aren't using authMiddleware in your middleware file
13 replies
TTCTheo's Typesafe Cult
Created by fasm on 5/23/2023 in #questions
Clerk: auth() was called but it looks like you aren't using authMiddleware in your middleware file
I spent ages on this, and ended up fixing it by updating my version of node to v20
13 replies
TTCTheo's Typesafe Cult
Created by fasm on 5/23/2023 in #questions
Clerk: auth() was called but it looks like you aren't using authMiddleware in your middleware file
13 replies
TTCTheo's Typesafe Cult
Created by fasm on 5/8/2023 in #questions
Error: backingFormData.forEach is not a function
I had to update node to v20
3 replies
TTCTheo's Typesafe Cult
Created by fasm on 4/13/2023 in #questions
Stop unnecessary vercel deployments in mono-repo
Awesome, thank you. I think this combined with a path filter should do the trick
4 replies
TTCTheo's Typesafe Cult
Created by fasm on 12/12/2022 in #questions
next export
Any recommendations?
6 replies
TTCTheo's Typesafe Cult
Created by fasm on 12/12/2022 in #questions
next export
For some context, I’m trying to build a chrome extension with auth build in. Hence why it needs to be a static site
6 replies
TTCTheo's Typesafe Cult
Created by fasm on 12/12/2022 in #questions
next export
Yeah good point lol
6 replies