fix: reuse sync helper on machines fallback
This commit is contained in:
parent
7a3eca9361
commit
422cba2b83
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ export async function POST(request: Request) {
|
|||
const fallback = await prisma.company.findFirst({ where: { tenantId, slug: normalizedSlug } })
|
||||
if (fallback) {
|
||||
try {
|
||||
await ensureConvexCompany({
|
||||
await syncConvexCompany({
|
||||
tenantId,
|
||||
slug: fallback.slug,
|
||||
name: fallback.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue