Route for Updating a single Incident Status

This commit is contained in:
Br0wnHammer committed 2025-06-20 15:39:13 +05:30
1 parent 205e16a96d
commit e8908351a2
6 files changed
+81 -5

No files matched your search

+18
View File
@@ -598,6 +598,24 @@ class NetworkService {
return this.axiosInstance.get(`/checks/team?${params.toString()}`);
};
/**
* ************************************
* Update the status of a check
* ************************************
*
* @async
* @param {Object} config - The configuration object.
* @param {string} config.checkId - The ID of the check to update.
* @param {boolean} config.status - The status to update the check to.
* @returns {Promise<AxiosResponse>} The response from the axios PUT request.
*
*/
async updateCheckStatus(config) {
return this.axiosInstance.put(`/checks/${config.checkId}`, {
status: config.status,
});
}
/**
* ************************************
* Get all checks for a given user