Дочинили авторизацию

This commit is contained in:
mi
2026-07-16 15:50:34 +03:00
parent d86e663690
commit 3a3d26bd6e
9 changed files with 118 additions and 5 deletions
@@ -112,7 +112,7 @@ def upgrade() -> None:
THEN 'contact.map_or_create' ELSE 'contact.update' END;
END IF;
v_dedup := v_task_type || ':' || v_entity_id::text || ':' ||
encode(digest(row_to_json(NEW)::text, 'sha256'), 'hex');
encode(public.digest(row_to_json(NEW)::text, 'sha256'), 'hex');
INSERT INTO han_app.sync_queue
(id, task_type, entity_type, entity_id, dedup_key, payload_json,
status, attempt_count, next_attempt_at, created_at, updated_at)