Przeglądaj źródła

feat: sending ai usage quota to WF during sync (#32381)

GitOrigin-RevId: 0bd5eec1f5f940e3245d9fa22f01dcf69b2b45d6
Jimmy Domagala-Tang 6 miesięcy temu
rodzic
commit
6aadc81405

+ 1 - 0
services/web/app/src/Features/Subscription/FeaturesUpdater.mjs

@@ -117,6 +117,7 @@ async function refreshFeatures(userId, reason) {
             userOverleafId: userId,
             // todo: quota clean-up: collab with writefull to rename this, and check if still needed
             hasAiAssist: hasPremiumAiFeatures,
+            aiUsageQuota: newFeatures.aiUsageQuota,
           },
           method: 'POST',
         }