๐Ÿš€ Hive dApps Dev Update: Distriator Cash-Backs Go Lightning Fast โšก๐ŸŽ‰

Words
504
Reading
3 min
Listen
Play
1y

Hello Hive Community Members,

Hope you all had amazing weekends ๐Ÿป. Sorry to break it to youโ€”yes, it's MONDAY again. Dang it! I worked the whole weekend (donโ€™t ask me how that went ๐Ÿ˜…). Anyway, letโ€™s not debate weekends vs weekdaysโ€”letโ€™s talk about techy stuff. Todayโ€™s update is all about Distriator.

It's Monday again


๐Ÿ’ฐ Distriator Cash-Back Upgrade Story

  • Backend changes applied for instant cash-backs ๐Ÿš€
  • No front-end changes neededโ€”only backend business logic touched ๐Ÿค“
  • Published a business review, tried claimingโ€ฆ BAM! Error on my phone screen ๐Ÿ˜‘
  • Tried again, failed again. BUTโ€ฆ surprise ๐Ÿคฏโ€”cash-back still arrived in wallet!

cash-back in the wallet

Curiosity got meโ€”so ditched the phone, ran it locally & debugged with browser ๐Ÿ•ต๏ธโ€โ™‚๏ธ.

run locally, debug in browser

Boom. API was throwing errors despite actually completing processes. SSH to the server, checked logs, and yupโ€”spotted mysterious error messages ๐Ÿ˜….

let's take a look at the server logs

Tracked log lines above the error. Backend did everything right: sent cash-backs โœ”๏ธ, triggered Discord webhooks โœ”๏ธ, added reviews โœ”๏ธ. But failed at the LAST STEPโ€”updating cashback status.

So, this line throws error

Root cause found ๐Ÿ›: In backend repo function, I mixed query part into the update block. Classic dev moment. Fixed it โœ….

Found the root cause
Bug fix in backend code

Launched frontend + backend locally, pointed them to localhostโ€”time for new test ๐Ÿงช. BUTโ€”daily cashback limit = 2 per user. Bummer. Switched test accounts ๐Ÿ˜….

Result? ๐ŸŽ‰ Perfect working claim with BIG Congratulations (maybe too many TADA-popups) ๐Ÿ˜‚.

Ahaa Finally it worked

Took 12 seconds โฐ though. Dear starkerz ๐Ÿคž please donโ€™t scream at me for that.

But yes, it did take 12 seconds though


๐Ÿž Bugs Squashed

While testing, I also spotted some sneaky UI bugs ๐ŸŽญ caused by backend sending MongoDBโ€™s new attributes. Frontend just displayed defaults ๐Ÿคฆ.

Bug in UI with invoice-id and amount

But hey, patched backend + frontend both ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘ฉโ€๐Ÿ’ป. Retested locallyโ€”booooom ๐Ÿ’ฅ bugs gone! Deployed to server. Mission accomplished.

Fixed UI bugs


๐Ÿ”ฎ Whatโ€™s Next?

  • Investigating long processing times (12 secs) ๐ŸŒโ€”reported by Starkerz.
  • Similar issue noticed in checkinwithxyzโ€”time to speed things up ๐Ÿ’จ.

๐Ÿฆพ Power-Up the Hive! ๐Ÿš€๐ŸŒ’

  • ๐Ÿ’ช More fuel to Hiveโ€™s unbeatable community!
  • ๐Ÿง™โ€โ™‚๏ธ Open-source wizardsโ€”much love, much respect!
  • ๐ŸŒ’ Hive = blockchain rocket. Destination: MOON + BEYOND. Unlimited upvotes ahead! ๐Ÿš€

๐Ÿ™Œ Support, Laughs, and Good Vibes

  • Did this dev journey make sense? Smash that upvote ๐Ÿ‘ (it funds my coffee โ˜•๐Ÿ’ธ).
  • Tested Distriator? Drop reviews, memes and jokes below ๐Ÿ˜‚๐Ÿ”ฅ.
  • Found a bug? Squash it with an UPVOTE ๐Ÿž.
  • Want more hive-magic? Vote me as Hive Witness ๐Ÿง™โ€โ™‚๏ธ.
  • Tips, jokes, karma, Hive-loveโ€”send them all โค๏ธ.
  • Until next updateโ€”BYEEE ๐Ÿ‘‹๐Ÿš€

๐Ÿ“ Final Note


๐Ÿš€ My Contributions to โ™ฆ๏ธ Hive Ecosystem

ContributionToHiveEcosystem
Hive Witness NodeHive API Node3Speak Video Encoder Node Operator (highest number of nodes)3Speak Mobile App Developer
Podcast App Developer3Shorts App Developer3Speak Support & Maintenance TeamDistriator Developer
CheckinWithXYZHive InboxHiFindHive Donate App
Contributed to HiveAuth Mobile AppEcency โ†” 3Speak IntegrationEcency โ†” InLeo IntegrationEcency โ†” Actifit Integration
Hive Stats AppVote for Witness AppHiveFlutterKitNew 3Speak App

๐Ÿ™Œ Support Back

โค๏ธ Appreciate my work? Consider supporting threespeak@threespeak & sagarkothari88@sagarkothari88! โค๏ธ

VoteForWitness
sagarkothari88sagarkothari88@sagarkothari88
threespeakthreespeak@threespeak
๐Ÿš€ Hive dApps Dev Update: Distriator Cash-Backs Go Lightning Fast โšก... | Ecency