
Closed
Posted
Paid on delivery
Bug fix in a [login to view URL] real-time chat application. Context: chat messages are stored as generic ChatEvent rows in Postgres, with no dedicated flag distinguishing a private message from a public one — private messages currently arrive with a text-based marker prefixed to the message body (e.g. a bracketed tag at the start of the string). The frontend chat component already has a fully built, distinct rendering path for private messages (different visual treatment) — it just never gets used, because the API route that serves chat events to the frontend maps every single row to the generic "chat" type regardless of content, so the private-message type the frontend already knows how to render is never actually emitted. Task: update the API route so it correctly detects the private-message marker in the stored message body and emits the distinct type the frontend already expects, instead of always emitting the generic type. This should require no frontend changes — the rendering path is already built and just needs real data reaching it. I'll share the specific route file, the relevant type definitions, and a schema excerpt once we're talking — a few isolated files, not the full repo. Small, contained, fixed-price. Clean git history and a short before/after description of your fix expected on delivery.
Project ID: 40644009
228 proposals
Remote project
Active 1 hour ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
228 freelancers are bidding on average $132 USD for this job

Hi! This is something we can handle without issue. One quick question before confirming: is the private-message marker a consistent, well-defined pattern (same format every time), or has it evolved and there might be edge cases in existing rows worth accounting for? We'd fix the API route to detect the marker and emit the correct type — no frontend changes needed, just as you described. Clean commit with a before/after summary on delivery. Gustavo & the DoTheCode team
$180 USD in 7 days
7.4
7.4

Hi, This is a precise, well-scoped fix — the private-message marker exists, the frontend rendering path exists, the only gap is the API route's type-mapping logic not detecting and forwarding it. No architecture changes needed, just closing that one gap correctly. My approach: Inspect the marker format exactly (bracketed tag position/pattern) against the stored ChatEvent body to write a precise, non-brittle detection check — not a loose string match that could misfire on edge cases (e.g., a public message that happens to contain similar text). Update the API route's type-mapping logic to emit the frontend's existing private-message type when the marker is detected, generic type otherwise. Verify against the type definitions you share so the emitted shape matches exactly what the frontend expects — no mismatch, no extra changes needed there. Test with both marked and unmarked messages to confirm correct routing before calling it done. Deliverable: clean, isolated commit plus a short before/after description of the fix. Comfortable working from the specific route file, types, and schema excerpt rather than the full repo. Ready to start once you share them.
$30 USD in 1 day
6.4
6.4

Hello, this looks like a clean backend mapping fix rather than a full chat-system rewrite, which is good. From your description, the main job is updating the API route to detect the stored private-message marker correctly and return the distinct event type your frontend already expects. I can handle the fix carefully, keep the changes isolated, and provide a concise delivery note explaining exactly what changed. Happy to start once you share the relevant files.
$140 USD in 7 days
5.9
5.9

Hi, I can fix this cleanly without touching the frontend rendering path. From your description, the issue is isolated in the API serialization layer: ChatEvent rows are being normalized to the generic chat type before the client sees them. I will update the route to detect the private-message prefix reliably, map those rows to the existing private-message type, and preserve the current payload shape so no frontend changes are required. I will also handle edge cases around malformed or missing message bodies, keep the change narrowly scoped, and verify that public messages continue to render exactly as before. Delivery will include the focused code change, a clean git commit history, and a short before/after explanation of the bug and fix. Best, Justin
$140 USD in 7 days
6.0
6.0

Hello! We can fix the API route so private messages are passed through correctly. 1. Can you share the route file and the relevant type definitions? 2. How is the private-message marker stored in the message body? — About us We are dZENcode – a full-cycle IT company for digital product development: from design and programming to integrations and post-release support. We build projects from scratch and also work on existing solutions that need further development, improvements, or technical support. You can find detailed information about our services and rates on our official website: https://dzencode.com. Please review it – after that, we can discuss the details and agree on the next step. ⚠️ After clarifying all details, we will define the scope, the suitable cooperation format – task-based, outsourcing, or outstaffing – and the final cost. Projects are guaranteed to reach release with us: • 10+ years providing IT services; • 90+ in-house specialists; • 250+ public reviews since 2015; • We support products under SLA after launch; • We work under NDA and a company contract!
$140 USD in 7 days
6.3
6.3

Hi, I understand the issue: the frontend private-message rendering already exists, but the API currently maps every ChatEvent to the generic "chat" type. I can fix this cleanly at the API layer by detecting the existing private-message prefix and returning the private-message type expected by the frontend—without unnecessary frontend or schema changes. Deliverables: targeted fix, edge-case testing, clean Git commit/history, and a short before/after explanation. Price: $100(NEgotiable) Timeline: Same day Share the route file, type definitions, and Prisma/schema excerpt, and I can start immediately. Best regards, Ravi B.
$100 USD in 1 day
5.3
5.3

Hi, I can help with Fix Private Message Issue in Next.js. My relevant stack for this is JavaScript, Node.js, AngularJS, Next.js. I will clarify scope first, implement cleanly, and keep you updated until delivery. Thanks, Arslan Shahid
$30 USD in 7 days
5.4
5.4

I can help you fix this by addressing the root cause at the API boundary. The issue is straightforward: the route is mapping all rows to the generic type when it should be parsing the text-based marker and emitting the private-message type your frontend already handles. My approach: I'll update the API route to inspect the stored message body, detect the bracketed marker, and map those rows to the distinct private type. The existing frontend rendering path stays untouched—it will simply receive the correct data and work as designed. I'll also account for edge cases (e.g., malformed markers, empty bodies) to ensure the change is robust. The fix will be isolated to the route file, with a clean commit and a concise before/after summary for your review.
$140 USD in 7 days
5.3
5.3

Hello Dear! Good Day! Hope you are doing fine. This is Ruhul Ajom Sagor. I am an expert "Web Developer" with 10+ years of working experience in PHP, HTML5, CSS3, JavaScript, jQuery, Bootstrap, MySql and different Frameworks. I have completed my B.S.C Engineering in Computer Science and Engineering (CSE) from BUET. Hire me and you don't have to worry about your website problems again! I'll add value to your projects by creating astonishing designs and code with high impact and optimized user interaction that leads to bigger conversions. WHAT PROBLEMS CAN I HELP YOU SOLVE? • Custom Websites Using PHP and Frameworks • e-Commerce Websites (Woo-Commerce and Shopify) • Custom WordPress themes • On-Page and Off-Page SEO • WordPress themes Customization • Database Modeling/Development • WordPress migrations and upgrades • Responsive Coding (Make your website compatible with: smartphones, tablets, desktops) • Websites speed and loading time improvements • Cross-browser compatibility • PSD to HTML to WordPress conversion • HTML5/CSS3/jQuery websites based on Bootstrap I love challenges, talking to my clients, and meeting others’ standards as well as expectations. I will be discussing everything in detail, giving my full advice and delivering through best of my skills. You are cordially welcome to discuss your project. Thank You! Best Regards, Ruhul Ajom
$50 USD in 2 days
4.9
4.9

Hi, You’ll get a focused API fix that makes stored private chat events reach the existing frontend rendering path without unnecessary frontend changes. I understand the route currently maps every ChatEvent to generic chat despite the bracketed marker in the message body. I’ll inspect the supplied route and types, implement precise marker detection with safe handling for edge cases, test the mapping, and keep the change isolated. I’ll provide a clean commit and concise before/after notes. Can you share the exact private-message marker format and expected emitted type? Best Regards, Fizza Nadeem K
$70 USD in 3 days
5.0
5.0

Hello, "Detect Private Markers In The API Mapper" - the frontend already works; the API is simply labeling every event as generic chat. I’d keep this isolated to the API route: detect the private-message marker when mapping the stored ChatEvent body, emit the existing private type, and leave the frontend untouched. I’d also check the edge cases around missing/empty bodies and marker placement, then run the relevant type/build checks so the fix does not affect normal messages. I can keep the change focused in the requested files, with a clean git commit and a short before/after explanation. Can you provide the exact private-message marker and the expected private event type name? Looking forward to working with you. Truong
$30 USD in 1 day
4.6
4.6

Your private-message renderer is fine; the API mapper is collapsing every event into the generic type. I’ll patch the route’s DTO mapping boundary: detect the exact private-message prefix, emit the existing private type, and leave all other ChatEvent rows unchanged. I’ll verify the marker contract first so ordinary messages containing similar text aren’t misclassified. No schema or frontend changes. You’ll get a focused commit with clean history and a concise before/after note. Should the marker remain in the displayed body, or should the API strip it when emitting the private type?
$100 USD in 1 day
4.8
4.8

Hi, I’ve read your bug summary carefully, and this is exactly the kind of contained backend fix I can deliver cleanly. The issue is clear: your API route is always returning a generic chat event, so the private-message rendering path in the frontend never receives the correct type. I work on JavaScript and Node.js applications with API Development workflows, and I can update the route logic to detect the private-message marker, map it to the expected event type, and keep the change isolated so no AngularJS-style frontend rewiring is needed. I’ll also provide clean git history plus a short before/after note on the fix. I can start as soon as you share the route file, related types, and schema excerpt, and should have this wrapped up within 2 days. Does the private-message marker behave nicely, or does it enjoy inventing new disguises sometimes? Best regards, KANIKA
$100 USD in 2 days
4.4
4.4

Hello. Your issue isn't with the frontend—the private message UI is already implemented. The real problem is that the API layer always maps every ChatEvent to the generic chat type, preventing the existing private-message rendering path from ever receiving the correct payload. My approach is to trace the event transformation pipeline, implement reliable detection of the private-message marker, emit the expected message type without affecting public chat behavior, and verify backward compatibility with existing records. I'll keep the change isolated, maintain a clean Git history, thoroughly test both public and private message flows, and provide a concise before/after summary so the fix remains easy to maintain. Thanks.
$105 USD in 3 days
4.3
4.3

Hi, This fits me perfectly, and I'll get it done! Your project immediately caught my attention — this is exactly the kind of work I enjoy and excel at. I've built up solid experience in this area and I'm genuinely excited about the opportunity to contribute. I'd invite you to browse my profile and past work to get a sense of what I bring to the table. I'm available to start promptly and happy to jump on a quick call to align on your expectations. Let's make this happen!
$200 USD in 7 days
4.4
4.4

Hi, I am available now. I understand your project details. I will follow instructions and keep you updated. I am a skilled freelancer with 5 years of experience in Node.js, API Development and I have completed similar projects. Visit my profile to check my latest work and read short client reviews. Let us make this great together, please connect in chat. Warm regards.
$100 USD in 2 days
3.6
3.6

Can you share the API route and the relevant type definition first so I can confirm the exact private-message marker and expected output type? I would update the route to inspect the stored ChatEvent message body, detect the private-message marker, and emit the existing private-message type when it is present. All other events would continue through the current generic chat mapping, so the existing frontend rendering remains unchanged. I will keep the change isolated to the relevant API route, preserve the existing response shape and Prisma/Postgres flow, and avoid unnecessary refactoring. I will also test both private and normal messages to make sure the marker detection does not affect existing chat events. Delivery will include a clean git history and a short before/after note explaining exactly what was changed. Since this is a contained fix, I can work from the few files you provide rather than needing the full repository. Please send the route file, type definitions, and schema excerpt when ready. Will wait for your response.
$240 USD in 7 days
3.8
3.8

Hi, This is a nicely contained fix, and I understand the issue: **the frontend already handles private messages correctly; the API is simply mapping every `ChatEvent` to the generic `chat` type.** I’d update the API route to reliably detect the existing private-message marker in the stored message body and return the **private-message type expected by the existing frontend**, without touching the rendering logic. I’ll keep the change isolated to the relevant route, verify the mapping against the provided types/schema, and test both private and normal messages to avoid regressions. I’ll also provide the requested **clean git history and a concise before/after explanation** of what changed and why. Happy to take this as a fixed-price task once you share the route file and type/schema excerpts. Best regards, Abhishek
$140 USD in 7 days
3.9
3.9

Hi, Your API route is always returning the generic chat type, preventing private messages from rendering. You need the route to inspect each ChatEvent, detect the bracketed tag marker, and emit a "private" type while leaving other events unchanged. I will add a simple regex check in the Prisma query handler, map matching rows to the private type, and update the response schema. Tests will verify both private and public messages before deployment. I recently fixed a similar routing issue for a real‑time chat app, delivering clean git commits and a concise before/after log. I provide an upfront estimate, send proactive updates, run unit tests, and hand over documentation. Will the marker always be at the start of the message? Is the private type already defined in your type definitions? Looking forward to your reply.
$50 USD in 1 day
3.4
3.4

Hello, "Detect Private Marker In The API Mapper" - your existing private-message UI only needs the correct event type from the API. I’d keep this strictly backend-only: inspect the message prefix, map matching ChatEvent rows to the existing private type, and leave normal messages as "chat". I’ll also check empty/malformed bodies so the detection does not accidentally change unrelated events. No frontend changes are needed. I’ll keep the git change isolated and provide the requested before/after note. Can you provide the exact private-message marker and the expected private event type from the existing TypeScript definitions? Looking forward to working with you. Abror
$30 USD in 1 day
3.2
3.2

Toronto, Canada
Member since Aug 11, 2026
$30-250 USD
$2-8 USD / hour
$3000-5000 USD
£18-36 GBP / hour
min $50 USD / hour
$15-25 USD / hour
₹12500-37500 INR
₹12500-37500 INR
€250-750 EUR
$3000-5000 USD
₹100-400 INR / hour
$1500-3000 USD
$1500-3000 USD
$250-750 USD
₹1500-12500 INR
£18-36 GBP / hour
₹1500-12500 INR
$1500-3000 USD
₹75000-150000 INR
£18-36 GBP / hour
$250-750 USD