fix: align server deadlines and follow consumers with preparation state

This commit is contained in:
2026-09-06 09:09:10 +03:00
parent 7ad5fb4f50
commit 144724484c
8 changed files with 124 additions and 33 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
* edilmiyordu — herkes her şeyi kullanabiliyordu. Burada gerçekten uygulanır.
*/
import { getUser, documentUsage, listApiKeys, getData } from './user-store.mjs';
import { getUser, documentUsage, listApiKeys, getData, getTrackedTenderKeys } from './user-store.mjs';
export const PLAN_HAKLARI = {
ucretsiz: {
@@ -61,7 +61,7 @@ export function kullanim(email, opts) {
const h = haklar(email, opts);
const belge = documentUsage(email);
const ekip = (getData(email, 'ekip') || []).length;
const takip = (getData(email, 'kanban') || []).filter?.((t) => t?.takipte)?.length ?? null;
const takip = getTrackedTenderKeys(email).length;
// Yönetici hesapları her zaman tam erişimlidir; bu, satın alınan aboneliği
// GİZLEMEMELİ — arayüz ikisini ayrı gösterebilsin diye ikisini de döndürüyoruz.
const u = getUser(email);