feat: update app.db and BACKLOG.md with new decisions and adjustments
All checks were successful
Deploy / deploy (push) Successful in 7m45s
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user