Merge branch 'master' into on-call

This commit is contained in:
Simon Larsen 2023-06-20 11:53:49 +01:00
commit 9bbd32424e
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 8 additions and 0 deletions

View File

@ -1000,6 +1000,10 @@ class DatabaseService<TBaseModel extends BaseModel> {
createdAt: SortOrder.Descending,
};
if (!findBy.select) {
findBy.select = {} as any;
}
if (!(findBy.select as any)['createdAt']) {
(findBy.select as any)['createdAt'] = true;
automaticallyAddedCreatedAtInSelect = true;

View File

@ -105,3 +105,7 @@ We <3 contributions big and small. In priority order (although everything is app
- Write tests for some of our codebase. [See issues here](https://github.com/OneUptime/oneuptime/issues?q=is%3Aopen+is%3Aissue+label%3A%22write+tests%22)
- Work on any issue you like. [See issues here](https://github.com/OneUptime/oneuptime/issues)
- Open new issues and create new feature requests that you would like to see. [Open issues here](https://github.com/OneUptime/oneuptime/issues)
## Donate
If you like the project, please consider a small donation. Every single dollar will be used to ship new features or maintain existing ones. 100% of the work we do is open-source. [Please donate here](https://github.com/sponsors/OneUptime)