Spaces:
Sleeping
Sleeping
Nathan commited on
Commit ·
fbda58b
1
Parent(s): 428e88d
Upgrade: Increased free channel limit to 2 & Paid to 5
Browse filesFiles changed (2)
- dashboard/index.html+2-1
- server.js+1-1
423 unmodified lines424425426427428429430423 unmodified linesdocument.getElementById('stat-subs').innerText = totalS.toLocaleString();// Show "Add Another" button if limit not reachedconst limit = (userPlan === 'premium' || userPlan === 'ultra') ? 2 : 1;if (yt.count < limit) {const addBtn = document.createElement('button');addBtn.className = "btn-primary btn-full";423 unmodified lines424425426427428429430431423 unmodified linesdocument.getElementById('stat-subs').innerText = totalS.toLocaleString();// Show "Add Another" button if limit not reachedconst isPaid = (userPlan === 'premium' || userPlan === 'ultra');const limit = isPaid ? 5 : 2;if (yt.count < limit) {const addBtn = document.createElement('button');addBtn.className = "btn-primary btn-full";
498 unmodified lines499500501502503504505498 unmodified linesconst { data: existingChannels, count: currentChannels } = await db.from('channels').select('*', { count: 'exact' }).eq('user_id', userId);const isPaid = user?.plan === 'premium' || user?.plan === 'ultra' || user?.role === 'admin';const limit = isPaid ? 2 : 1;// 5. Check if this specific channel is already connected to this userconst hasThisChannel = existingChannels?.find(c => c.channel_id === channel.id);498 unmodified lines499500501502503504505498 unmodified linesconst { data: existingChannels, count: currentChannels } = await db.from('channels').select('*', { count: 'exact' }).eq('user_id', userId);const isPaid = user?.plan === 'premium' || user?.plan === 'ultra' || user?.role === 'admin';const limit = isPaid ? 5 : 2; // Increased Free limit to 2, Paid to 5// 5. Check if this specific channel is already connected to this userconst hasThisChannel = existingChannels?.find(c => c.channel_id === channel.id);
dashboard/index.html+2-1
server.js+1-1