feat: add idempotency-key

This commit is contained in:
2026-11-01 14:11:53 +03:00
parent b4d1497d1c
commit cdcff89d25
10 changed files with 269 additions and 12 deletions
+1
View File
@@ -45,6 +45,7 @@ describe('Безопасность при конкурентном доступ
sendTasks.push(
request(server)
.post(`/api/v1/chats/${chat.body.id}/messages`)
.set('Idempotency-Key', randomUUID())
.set('Authorization', bearer(clients[c]))
.send({ text: `client-${c}-message-${m}` }),
);