refactor(application): exclude appName from updateApplication data to streamline database updates

This commit is contained in:
Mauricio Siu
2025-07-28 01:50:58 -06:00
parent 558f6aecae
commit bac2afb423

View File

@@ -142,10 +142,11 @@ export const updateApplication = async (
applicationId: string,
applicationData: Partial<Application>,
) => {
const { appName, ...rest } = applicationData;
const application = await db
.update(applications)
.set({
...applicationData,
...rest,
})
.where(eq(applications.applicationId, applicationId))
.returning();