mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 10:45:57 +08:00
fix(server): session unique index conflict (#12865)
This commit is contained in:
@@ -1880,5 +1880,14 @@ export async function refreshPrompts(db: PrismaClient) {
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await db.aiSession.updateMany({
|
||||
where: {
|
||||
promptName: prompt.name,
|
||||
},
|
||||
data: {
|
||||
promptAction: prompt.action ?? null,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user