fix: Update PrivacySetting groupadd type and enhance error handling in fetchInstances route

- Changed the type of `groupadd` in `PrivacySetting` from `WAPrivacyValue` to `any` to allow for more flexible data handling.
- Wrapped the `fetchInstances` route in a try-catch block to improve error handling and logging, ensuring that any errors are logged and a proper error response is returned to the client.

These changes enhance the robustness of the API and improve type flexibility in the DTO.
This commit is contained in:
Davidson Gomes
2024-12-11 15:53:58 -03:00
parent ca474236b0
commit 555fa606ea
2 changed files with 20 additions and 14 deletions

View File

@@ -84,7 +84,7 @@ class PrivacySetting {
status: WAPrivacyValue;
online: WAPrivacyOnlineValue;
last: WAPrivacyValue;
groupadd: WAPrivacyValue;
groupadd: any;
}
export class PrivacySettingDto {