mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
808b3512f3
This commit refactors the code in SendCreatedResourceNotification.ts to improve the clarity of how the "declaredBy" field is assigned. The code now checks if the incident has a createdByProbe and createdByUser, and assigns the appropriate value to "declaredBy" based on the available information. This change enhances the readability and maintainability of the code. |
||
---|---|---|
.. | ||
src | ||
.dockerignore | ||
.gitignore | ||
index.ts | ||
jest.config.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
setupTest.js | ||
tsconfig.json |
OneUptime Common Library
The OneUptime Common Library is a collection of shared components, utilities that are used across the OneUptime platform. It is designed to be easy to install and use, and to be extensible.