diff --git a/src/routes/customers.ts b/src/routes/customers.ts index 3ed5939..96bf3f6 100644 --- a/src/routes/customers.ts +++ b/src/routes/customers.ts @@ -342,6 +342,7 @@ export async function customerRoutes(app: FastifyInstance) { if (!customer) return reply.code(404).send({ message: "Not found" }); const version = await getLatestChartVersion(); await upgradeCustomerChart(slug, version); + await syncArgoApp("customers"); await syncArgoApp(`customer-${slug}`); await db`UPDATE customers SET updated_at = NOW() WHERE slug = ${slug}`; app.log.info({ slug, version }, "customer chart upgraded"); @@ -354,6 +355,7 @@ export async function customerRoutes(app: FastifyInstance) { const version = await getLatestChartVersion(); const slugs = customers.map((c: any) => c.slug); await upgradeAllCustomerCharts(slugs, version); + await syncArgoApp("customers"); await Promise.all(slugs.map((s: string) => syncArgoApp(`customer-${s}`))); app.log.info({ slugs, version }, "all customers chart upgraded"); return reply.send({ upgraded: slugs, version });