Skip to content

Instantly share code, notes, and snippets.

View mega-greninja's full-sized avatar

roshan-zoca mega-greninja

View GitHub Profile
@mega-greninja
mega-greninja / fix-website-publish-wrong-id.patch
Last active April 24, 2026 10:39
fix(win): getWebsiteIdForEntity queries wrong table — returns product_entities.id instead of website.locations.website_id, causing website phone publish to silently fail every time
From 5c34235442831185d9360a1e5e9477cf9918939a Mon Sep 17 00:00:00 2001
From: mega-greninja <roshan.s@zoca.com>
Date: Fri, 24 Apr 2026 13:16:33 +0530
Subject: [PATCH 1/2] fix(win): query website.locations for correct websiteId
in virtual number publish
getWebsiteIdForEntity was querying entities.product_entities and returning
product_entities.id (a mapping record UUID), not the actual website UUID.
The website API validates against website.status.website_id, so the publish
to website always failed silently. Now queries website.locations.website_id
@mega-greninja
mega-greninja / booking-platform-breakdown.html
Last active April 21, 2026 07:38
Zoca Booking Platform Breakdown — 913 Paid Entities (April 2026)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Booking Platform Breakdown — Zoca Paid Entities</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f1117; color: #e1e4e8; padding: 40px 20px; }
.container { max-width: 1100px; margin: 0 auto; }