Commit Graph

19 Commits

Author SHA1 Message Date
d43f3762a3 Fixed Bug Server
## Summary
This branch contains several bug fixes and performance improvements, primarily focusing on:
- Database connection management
- MQTT client stability
- Logging optimization
- API enhancements

## Detailed Changes

### Fixed Issues
1. **Database Connection Management**
   - Removed  from user-validate API route to prevent connection pool exhaustion
   - Added proper connection handling in global Prisma setup
   - Reduced logging verbosity in production environments

2. **MQTT Client Improvements**
   - Enhanced MQTT client initialization with proper error handling
   - Added reconnection logic with configurable intervals
   - Implemented cleanup functions to prevent memory leaks
   - Added separate initialization logic for server and client-side code

3. **Logging Optimization**
   - Removed excessive logging in middleware that was causing high CPU usage
   - Configured appropriate log levels for development and production

4. **Component Stability**
   - Added safety checks in text editor component to prevent MQTT operations on the server side
   - Improved MQTT publishing logic with client availability checks

### New Files
-  - Utility functions for safe database operations

### Modified Files
1.
   - Removed problematic  call

2.
   - Configured different logging levels for dev/prod
   - Removed process listeners that were causing disconnections
   - Exported prisma instance separately

3.
   - Removed excessive logging statements

4.
   - Enhanced initialization with error handling
   - Added reconnection and timeout configurations

5.
   - Added proper cleanup functions
   - Improved connection handling

6.
   - Added MQTT client availability checks
   - Prevented server-side MQTT operations

### Performance Improvements
- Reduced database connection overhead
- Optimized MQTT connection handling
- Eliminated unnecessary logging in production
- Better memory management with proper cleanup functions

### No Issue
2026-02-12 16:29:03 +08:00
ae0167c902 fix winston console 2025-02-07 11:15:08 +08:00
0bdc25b1e6 Feature logs
Deskripsi:
- Fitur baru log untuk melihat error pada server upload
- Baru di terapkan di create profile
2024-12-16 15:41:02 +08:00
aa612d24bc Fix: Job
Deskripsi:
- Fix notifikasi admi to user
- Fix count notifikasi di admin dan user
## No Issue
2024-11-11 17:02:42 +08:00
81543d678c Fix: Event
Deskripsi:
- Perbaikan route status event
- Perbaikan route riwayat event
## No Issue
2024-10-28 17:00:23 +08:00
284787243b Fix: Avatar
Deskripsi:
- Avatar job
- Avatar collaboration
- Avatar event
## No Issuue
2024-10-01 16:31:12 +08:00
808a046167 # fix
# Deskripsi:
- Perbikan realtime
## No Issue
2024-07-24 11:20:25 +08:00
3b11b30473 Notifikas Job
# fix
- Notifikasi to admin
- Notifikasi to user
- Perubahan tampilan admin
## No issue
2024-06-12 14:25:04 +08:00
76f0396005 Notifikasi
# feat:
- Notifikasi di bagian admin

## No issue
2024-06-10 16:22:05 +08:00
0e16d6501f Revisi Tampilan Admin
# fix :
- Tampilan Donasi
# feat :
- Penambahan App Information
## No Issuee
2024-06-06 12:05:06 +08:00
5b8cd3a4b6 QC Investasi
# fix
Tampilan admin investasi
Tampilan admin donasi
## No issuee
2024-05-31 16:41:34 +08:00
166b1349f5 QC Event
# Fix
- Loading card
- Create : saat memilih jam sesuai dengan batas jam di hari itu
## No isuuee
2024-05-23 17:17:40 +08:00
10cf9c3a46 QC Job
# fix
- Loading card
- Loading button
- Size image
- Mandatori form
- Share wa
## No Issuu
2024-05-22 16:27:43 +08:00
68e0a9a237 QC Job
# fix
- Create dan edit
- Bagikam WA
- Loading
## No isssue
2024-05-22 14:08:17 +08:00
ce35aa8f51 QC Voting
- # fix
- Beranda dan mandatori input
## No issuee
2024-05-21 15:24:37 +08:00
dbeb740d1f Fix QC
# fix
- authentication
- profile
- pencarian user
- forum
## No issue
2024-05-20 10:55:13 +08:00
2a4d2951af Collaboration: Room chat
# feat
- chatting antar user
- lihat info grup
## No issue
2024-04-29 10:30:59 +08:00
c8666e65d1 auto push 2024-04-19 10:18:59 +08:00
4ab4a71961 # Project Collaboration
## feat
- Tampilan beranda & detailnya
- Tampilan status & detailnya
- Tampilan partisipasi & detailnya
- Tampilan grup diskusi & detailnya
### No issue
2024-04-03 10:26:40 +08:00