Add command ID to dropper nickname request for idempotency

This commit is contained in:
MayaTheShy
2026-03-22 02:38:12 -04:00
parent 8ad05cdeb9
commit edcc19e5a4

View File

@@ -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) {