Persist canonical prototype user state
This commit is contained in:
parent
083be77404
commit
19c85db89a
2 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,9 @@ class PrototypeStateStore:
|
|||
key = f"{platform}:{external_id}"
|
||||
existing = self._users.get(key)
|
||||
if existing is not None:
|
||||
return existing.model_copy(update={"is_new": False})
|
||||
stored = existing.model_copy(update={"is_new": False})
|
||||
self._users[key] = stored
|
||||
return stored
|
||||
|
||||
user = User(
|
||||
user_id=f"usr-{platform}-{external_id}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue