CaptainFantastic
DTDrizzle Team
•Created by CaptainFantastic on 10/11/2024 in #help
Extremely weird behaviour
It's extremely weird
10 replies
DTDrizzle Team
•Created by CaptainFantastic on 10/11/2024 in #help
Extremely weird behaviour
No that's not the issue. If I run updateCompany the first time and then comment it and run companies, it still output old data while the db has the new values in
10 replies
DTDrizzle Team
•Created by CaptainFantastic on 10/11/2024 in #help
Extremely weird behaviour
The console outputs oldest data
10 replies
DTDrizzle Team
•Created by CaptainFantastic on 10/11/2024 in #help
Extremely weird behaviour
await updateCompany({ name: "TATATAT 1", companyId: 50 })
await updateCompany({ name: "TATATAT 2", companyId: 51 })
await updateCompany({ name: "TATATAT 3", companyId: 52 })
const companies = await db.select().from(companiesTable);
console.log("companies are:", companies);
10 replies
DTDrizzle Team
•Created by CaptainFantastic on 10/11/2024 in #help
Extremely weird behaviour
Yep I just noticed and I did that but it doesn't solve the issue
10 replies