fix: reject stale company profile and filter updates

This commit is contained in:
2026-09-06 13:58:25 +03:00
parent ae32382ffa
commit 9d3acac59d
8 changed files with 92 additions and 25 deletions
+5 -2
View File
@@ -18,8 +18,11 @@ export const listTenderDocuments = (ikn) =>
// --- Kullanıcı verisi ---
export const getAllUserData = () => iste('/api/me/data').then((d) => requireObject(d,'veri'));
export const setUserData = (anahtar, deger) =>
iste('/api/me/data', { method: 'PUT', body: JSON.stringify({ anahtar, deger }) });
export const getUserDataSnapshot = () => iste('/api/me/data').then(data=>{
requireObject(data,'veri');requireObject(data,'revisions');return data;
});
export const setUserData = (anahtar, deger, revision=undefined) =>
iste('/api/me/data', { method: 'PUT', body: JSON.stringify({ anahtar, deger, revision }) });
// --- API anahtarları ---
export const listApiKeys = () => apiKeyRequest();