Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg6sxZ8wsKZAVLQ6Xj5
This commit is contained in:
@ -88,10 +88,10 @@ impl Store {
|
||||
let tx = self.conn.unchecked_transaction().map_err(db)?;
|
||||
let existing = self.chat(owner, id)?;
|
||||
let existing_rev = existing.as_deref().map(rev_of).unwrap_or(0);
|
||||
if let Some(aktuell) = existing {
|
||||
if existing_rev != basis {
|
||||
return Ok(ChatSave::Conflict { aktuell });
|
||||
}
|
||||
if let Some(aktuell) = existing
|
||||
&& existing_rev != basis
|
||||
{
|
||||
return Ok(ChatSave::Conflict { aktuell });
|
||||
}
|
||||
let rev = existing_rev + 1;
|
||||
let mut value: serde_json::Value = serde_json::from_str(data)
|
||||
|
||||
Reference in New Issue
Block a user