feat: update app.db and BACKLOG.md with new decisions and adjustments
All checks were successful
Deploy / deploy (push) Successful in 7m45s

- Updated the app.db file to reflect recent changes in the application state.
- Modified BACKLOG.md to include new entries regarding the removal of certain wizard steps, adjustments to priority chips, and the introduction of special quota conditions for candidates.
- Added details on the decision to link priority chips to data sources and clarified the implications for user experience and data handling.
This commit is contained in:
bilalgursen
2026-10-06 17:17:49 +03:00
parent c0696e2cbc
commit a3cb058a3b
74 changed files with 10334 additions and 445 deletions

View File

@@ -44,12 +44,17 @@ export async function profilAlanYaz(
if (!dogrulama.success) {
throw new Error(`Geçersiz değer: ${alan}`);
}
// Dizi değer (ozelDurum) JSON metni olarak bağlanır ve json() ile açılır;
// düz bağlanırsa SQLite onu tek bir dize olarak saklar.
const yeni = Array.isArray(dogrulama.data)
? sql`json(${JSON.stringify(dogrulama.data)})`
: sql`${dogrulama.data}`;
await appDb
.insert(schema.danismanProfil)
.values({ userId, alanlar: { [alan]: dogrulama.data }, updatedAt: now })
.onConflictDoUpdate({
target: schema.danismanProfil.userId,
set: { alanlar: sql`json_set(${kolon}, ${yol}, ${dogrulama.data})`, updatedAt: now },
set: { alanlar: sql`json_set(${kolon}, ${yol}, ${yeni})`, updatedAt: now },
});
}
return profilGetir(userId);