Skip to content

Commit d890b4b

Browse files
fix(web): Remove non-existent updated_by field from org feature route
This commit resolves a type error that occurred during the build process. The error was caused by an attempt to insert and update an 'updated_by' field in the 'orgFeature' table, which does not exist in the database schema. The fix removes the 'updated_by' field from the database queries in the organization feature route, ensuring that the build completes successfully. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 67e8a2f commit d890b4b

File tree

1 file changed

+0
-2
lines changed
  • web/src/app/api/admin/orgs/[orgId]/features/[feature]

1 file changed

+0
-2
lines changed

web/src/app/api/admin/orgs/[orgId]/features/[feature]/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,11 @@ export async function POST(
6969
org_id: orgId,
7070
feature: feature,
7171
config: body,
72-
updated_by: authResult.id,
7372
})
7473
.onConflictDoUpdate({
7574
target: [schema.orgFeature.org_id, schema.orgFeature.feature],
7675
set: {
7776
config: body,
78-
updated_by: authResult.id,
7977
updated_at: new Date(),
8078
},
8179
})

0 commit comments

Comments
 (0)