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`, {
|
||||
method: 'POST',
|
||||
headers: authHeaders(),
|
||||
body: JSON.stringify({ dropperName, nickname }),
|
||||
body: JSON.stringify({ dropperName, nickname, commandId: newCommandId() }),
|
||||
});
|
||||
const result = await response.json();
|
||||
if (result.nicknames) {
|
||||
|
||||
Reference in New Issue
Block a user