Sleep more

This commit is contained in:
MartinBraquet
2025-10-25 23:08:55 +02:00
parent bfd6a59d87
commit ccb72364e1

View File

@@ -50,7 +50,7 @@ export const createProfile: APIHandler<'create-profile'> = async (body, auth) =>
console.error('Failed to track create profile', e)
}
try {
await sleep(2000) // Wait until the profile is fully in the db, otherwise ISR may cache "profile not created yet"
await sleep(10000) // Wait until the profile is fully in the db, otherwise ISR may cache "profile not created yet"
let message: string = `[**${user.name}**](https://www.compassmeet.com/${user.username}) just created a profile`
if (body.bio) {
const bioText = jsonToMarkdown(body.bio)