v1.0.0-rc

This commit is contained in:
Ubuntu 2025-06-09 12:26:51 +05:30
parent 5c511a7548
commit 2debd6f73a
9 changed files with 1112 additions and 7 deletions

View File

@ -23741,3 +23741,5 @@ INFO:access:"DELETE /flask-api/delete-document-vectors" 200 - Duration: 0.009s -
INFO:werkzeug:127.0.0.1 - - [09/Jun/2025 09:46:52] "DELETE /flask-api/delete-document-vectors HTTP/1.1" 200 -
INFO:access:"DELETE /flask-api/delete-document-vectors" 400 - Duration: 0.000s - IP: 127.0.0.1
INFO:werkzeug:127.0.0.1 - - [09/Jun/2025 09:46:52] "DELETE /flask-api/delete-document-vectors HTTP/1.1" 400 -
INFO:access:"GET /flask-api/" 404 - Duration: 0.001s - IP: 127.0.0.1
INFO:werkzeug:127.0.0.1 - - [09/Jun/2025 11:46:24] "GET /flask-api/ HTTP/1.1" 404 -

View File

@ -62,3 +62,4 @@
2025-06-09 09:46:52,833 - INFO - "POST /flask-api/generate-answer" 200 - Duration: 4.933s - IP: 127.0.0.1
2025-06-09 09:46:52,876 - INFO - "DELETE /flask-api/delete-document-vectors" 200 - Duration: 0.009s - IP: 127.0.0.1
2025-06-09 09:46:52,899 - INFO - "DELETE /flask-api/delete-document-vectors" 400 - Duration: 0.000s - IP: 127.0.0.1
2025-06-09 11:46:24,367 - INFO - "GET /flask-api/" 404 - Duration: 0.001s - IP: 127.0.0.1

View File

@ -23741,3 +23741,5 @@ TypeError: cannot unpack non-iterable coroutine object
2025-06-09 09:46:52,876 - werkzeug - INFO - [_internal.py:97] - 127.0.0.1 - - [09/Jun/2025 09:46:52] "DELETE /flask-api/delete-document-vectors HTTP/1.1" 200 -
2025-06-09 09:46:52,899 - access - INFO - [chat.py:1582] - "DELETE /flask-api/delete-document-vectors" 400 - Duration: 0.000s - IP: 127.0.0.1
2025-06-09 09:46:52,899 - werkzeug - INFO - [_internal.py:97] - 127.0.0.1 - - [09/Jun/2025 09:46:52] "DELETE /flask-api/delete-document-vectors HTTP/1.1" 400 -
2025-06-09 11:46:24,367 - access - INFO - [chat.py:1582] - "GET /flask-api/" 404 - Duration: 0.001s - IP: 127.0.0.1
2025-06-09 11:46:24,368 - werkzeug - INFO - [_internal.py:97] - 127.0.0.1 - - [09/Jun/2025 11:46:24] "GET /flask-api/ HTTP/1.1" 404 -

File diff suppressed because it is too large Load Diff

View File

@ -202,8 +202,8 @@ WHERE hospital_id = ?
// Step 5: Insert user into the appropriate table
const query = `
INSERT INTO ${tableName}
(hospital_code,hospital_id, email, hash_password, role_id, is_default_admin, requires_onboarding, password_reset_required, profile_photo_url, phone_number, bio, status,name, department, location,city,mobile_number)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?,?,?)
(hospital_code,hospital_id, email, hash_password, role_id, is_default_admin, requires_onboarding, password_reset_required, profile_photo_url, phone_number, bio, status,name, department, location,mobile_number,city)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?,?,?,?)
`;
const result = await db.query(query, [
hospital_code,
@ -221,8 +221,8 @@ WHERE hospital_id = ?
rest.name,
rest.department,
rest.location,
rest.city,
rest.mobile_number
rest.mobile_number,
rest.city
]);
@ -463,6 +463,9 @@ exports.editHospitalUser = async (req, res) => {
const requestorHospitalId = req.user.hospital_id; // Extracted from the authenticated user's token
const { hospital_id, role_id, ...rest } = req.body;
console.log("updated data,", updatedData)
if (!id) {
return res.status(400).json({ error: 'User ID is required' });
}
@ -496,11 +499,11 @@ exports.editHospitalUser = async (req, res) => {
'name',
'department',
'location',
'city',
'mobile_number',
'access_token',
'access_token_expiry',
'hospital_code'
'hospital_code',
'city'
];
// Build dynamic SQL query

View File

@ -43,7 +43,7 @@ router.post('/add-user',
userController.addUser);
// Edit hospital user
router.put('/edit-user/:id', authMiddleware.authenticateToken, userController.editHospitalUser);
router.put('/edit-user/:id',upload.none(), authMiddleware.authenticateToken, userController.editHospitalUser);
router.delete('/delete-user/:id', upload.none(), authMiddleware.authenticateToken, userController.deleteHospitalUser);
router.post('/upload-profile-photo', authMiddleware.authenticateToken, userController.uploadProfilePhoto);

View File

@ -157,6 +157,7 @@ wss.on("connection", (ws) => {
f.feedback_text,
f.created_at,
f.is_forwarded,
f.improvement,
h.name_hospital as sender_hospital,
h.hospital_code
FROM feedback f

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB