Add command ID to dropper nickname request for idempotency
This commit is contained in:
@@ -309,7 +309,7 @@ export const useInventoryStore = create((set, get) => ({
|
|||||||
const response = await fetch(`${API_URL}/dropper-nicknames`, {
|
const response = await fetch(`${API_URL}/dropper-nicknames`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: authHeaders(),
|
headers: authHeaders(),
|
||||||
body: JSON.stringify({ dropperName, nickname }),
|
body: JSON.stringify({ dropperName, nickname, commandId: newCommandId() }),
|
||||||
});
|
});
|
||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
if (result.nicknames) {
|
if (result.nicknames) {
|
||||||
|
|||||||
Reference in New Issue
Block a user