mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-11 19:56:44 +00:00
fix(nginx): use findAllBy and remove LIMIT_MAX when fetching certs for disk write jobs
This commit is contained in:
parent
2a15cf8676
commit
2e2adffe17
2 changed files with 2 additions and 6 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import LIMIT_MAX from "Common/Types/Database/LimitMax";
|
||||
import { EVERY_FIFTEEN_MINUTE, EVERY_MINUTE } from "Common/Utils/CronTime";
|
||||
import { IsDevelopment } from "Common/Server/EnvironmentConfig";
|
||||
import AcmeCertificateService from "Common/Server/Services/AcmeCertificateService";
|
||||
|
|
@ -19,14 +18,13 @@ export default class Jobs {
|
|||
// Fetch all domains where certs are added to greenlock.
|
||||
|
||||
const certs: Array<AcmeCertificate> =
|
||||
await AcmeCertificateService.findBy({
|
||||
await AcmeCertificateService.findAllBy({
|
||||
query: {},
|
||||
select: {
|
||||
domain: true,
|
||||
certificate: true,
|
||||
certificateKey: true,
|
||||
},
|
||||
limit: LIMIT_MAX,
|
||||
skip: 0,
|
||||
props: {
|
||||
isRoot: true,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import LIMIT_MAX from "Common/Types/Database/LimitMax";
|
||||
import { EVERY_FIFTEEN_MINUTE, EVERY_MINUTE } from "Common/Utils/CronTime";
|
||||
import { IsDevelopment } from "Common/Server/EnvironmentConfig";
|
||||
import StatusPageDomainService from "Common/Server/Services/StatusPageDomainService";
|
||||
|
|
@ -20,7 +19,7 @@ export default class Jobs {
|
|||
// Fetch all domains where certs are added to greenlock.
|
||||
|
||||
const statusPageDomains: Array<StatusPageDomain> =
|
||||
await StatusPageDomainService.findBy({
|
||||
await StatusPageDomainService.findAllBy({
|
||||
query: {
|
||||
isCustomCertificate: true,
|
||||
customCertificate: QueryHelper.notNull(),
|
||||
|
|
@ -31,7 +30,6 @@ export default class Jobs {
|
|||
customCertificate: true,
|
||||
customCertificateKey: true,
|
||||
},
|
||||
limit: LIMIT_MAX,
|
||||
skip: 0,
|
||||
props: {
|
||||
isRoot: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue