@abdarrahmanabdelnasir/relay-node 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configCache.js +2 -0
- package/dist-cjs/configCache.js +2 -0
- package/package.json +1 -1
package/dist/configCache.js
CHANGED
|
@@ -141,6 +141,8 @@ export class ConfigCache {
|
|
|
141
141
|
const premiumIds = (this.config.premiumUserIds || []).map(String);
|
|
142
142
|
const isPremiumUser = premiumIds.includes(String(userId));
|
|
143
143
|
const isPremium = isPremiumRole || isPremiumUser;
|
|
144
|
+
// Diagnostic: log list size and match (no raw IDs)
|
|
145
|
+
console.log(`[commandless] premium_only check: premiumUserIds.length=${premiumIds.length}, isPremiumUser=${isPremiumUser}, isPremiumRole=${isPremiumRole}, allowed=${isPremium}`);
|
|
144
146
|
if (!isPremium) {
|
|
145
147
|
return { allowed: false, reason: 'Premium only' };
|
|
146
148
|
}
|
package/dist-cjs/configCache.js
CHANGED
|
@@ -144,6 +144,8 @@ class ConfigCache {
|
|
|
144
144
|
const premiumIds = (this.config.premiumUserIds || []).map(String);
|
|
145
145
|
const isPremiumUser = premiumIds.includes(String(userId));
|
|
146
146
|
const isPremium = isPremiumRole || isPremiumUser;
|
|
147
|
+
// Diagnostic: log list size and match (no raw IDs)
|
|
148
|
+
console.log(`[commandless] premium_only check: premiumUserIds.length=${premiumIds.length}, isPremiumUser=${isPremiumUser}, isPremiumRole=${isPremiumRole}, allowed=${isPremium}`);
|
|
147
149
|
if (!isPremium) {
|
|
148
150
|
return { allowed: false, reason: 'Premium only' };
|
|
149
151
|
}
|