forked from rohit/spurrin-backend
v1.0.0-rc
This commit is contained in:
parent
5c511a7548
commit
2debd6f73a
@ -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: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: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] "[31m[1mDELETE /flask-api/delete-document-vectors HTTP/1.1[0m" 400 -
|
INFO:werkzeug:127.0.0.1 - - [09/Jun/2025 09:46:52] "[31m[1mDELETE /flask-api/delete-document-vectors HTTP/1.1[0m" 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] "[33mGET /flask-api/ HTTP/1.1[0m" 404 -
|
||||||
|
|||||||
@ -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,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,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 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
|
||||||
|
|||||||
@ -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,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 - 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] "[31m[1mDELETE /flask-api/delete-document-vectors HTTP/1.1[0m" 400 -
|
2025-06-09 09:46:52,899 - werkzeug - INFO - [_internal.py:97] - 127.0.0.1 - - [09/Jun/2025 09:46:52] "[31m[1mDELETE /flask-api/delete-document-vectors HTTP/1.1[0m" 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] "[33mGET /flask-api/ HTTP/1.1[0m" 404 -
|
||||||
|
|||||||
1096
logs/combined.log
1096
logs/combined.log
File diff suppressed because it is too large
Load Diff
@ -202,8 +202,8 @@ WHERE hospital_id = ?
|
|||||||
// Step 5: Insert user into the appropriate table
|
// Step 5: Insert user into the appropriate table
|
||||||
const query = `
|
const query = `
|
||||||
INSERT INTO ${tableName}
|
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)
|
(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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?,?,?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?,?,?,?)
|
||||||
`;
|
`;
|
||||||
const result = await db.query(query, [
|
const result = await db.query(query, [
|
||||||
hospital_code,
|
hospital_code,
|
||||||
@ -221,8 +221,8 @@ WHERE hospital_id = ?
|
|||||||
rest.name,
|
rest.name,
|
||||||
rest.department,
|
rest.department,
|
||||||
rest.location,
|
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 requestorHospitalId = req.user.hospital_id; // Extracted from the authenticated user's token
|
||||||
const { hospital_id, role_id, ...rest } = req.body;
|
const { hospital_id, role_id, ...rest } = req.body;
|
||||||
|
|
||||||
|
|
||||||
|
console.log("updated data,", updatedData)
|
||||||
|
|
||||||
if (!id) {
|
if (!id) {
|
||||||
return res.status(400).json({ error: 'User ID is required' });
|
return res.status(400).json({ error: 'User ID is required' });
|
||||||
}
|
}
|
||||||
@ -496,11 +499,11 @@ exports.editHospitalUser = async (req, res) => {
|
|||||||
'name',
|
'name',
|
||||||
'department',
|
'department',
|
||||||
'location',
|
'location',
|
||||||
'city',
|
|
||||||
'mobile_number',
|
'mobile_number',
|
||||||
'access_token',
|
'access_token',
|
||||||
'access_token_expiry',
|
'access_token_expiry',
|
||||||
'hospital_code'
|
'hospital_code',
|
||||||
|
'city'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Build dynamic SQL query
|
// Build dynamic SQL query
|
||||||
|
|||||||
@ -43,7 +43,7 @@ router.post('/add-user',
|
|||||||
userController.addUser);
|
userController.addUser);
|
||||||
|
|
||||||
// Edit hospital user
|
// 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.delete('/delete-user/:id', upload.none(), authMiddleware.authenticateToken, userController.deleteHospitalUser);
|
||||||
router.post('/upload-profile-photo', authMiddleware.authenticateToken, userController.uploadProfilePhoto);
|
router.post('/upload-profile-photo', authMiddleware.authenticateToken, userController.uploadProfilePhoto);
|
||||||
|
|
||||||
|
|||||||
@ -157,6 +157,7 @@ wss.on("connection", (ws) => {
|
|||||||
f.feedback_text,
|
f.feedback_text,
|
||||||
f.created_at,
|
f.created_at,
|
||||||
f.is_forwarded,
|
f.is_forwarded,
|
||||||
|
f.improvement,
|
||||||
h.name_hospital as sender_hospital,
|
h.name_hospital as sender_hospital,
|
||||||
h.hospital_code
|
h.hospital_code
|
||||||
FROM feedback f
|
FROM feedback f
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 319 KiB |
BIN
uploads/profile_photos/profile_photo-1749450273762-402381361.png
Normal file
BIN
uploads/profile_photos/profile_photo-1749450273762-402381361.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue
Block a user