Release 202507010740
This commit is contained in:
@@ -268,13 +268,12 @@ export const nonDbAttributes: NonDbAttributeFull[] = [
|
||||
trustPoints: -4,
|
||||
links: [],
|
||||
customize: (service) => {
|
||||
const started = service.operatingSince as unknown as Date | null
|
||||
if (!started) return { show: false }
|
||||
if (!service.operatingSince) return { show: false }
|
||||
|
||||
const yearsOperated = differenceInYears(new Date(), started)
|
||||
const yearsOperated = differenceInYears(new Date(), service.operatingSince)
|
||||
if (yearsOperated >= 1) return { show: false }
|
||||
|
||||
const monthsOperated = differenceInMonths(new Date(), started)
|
||||
const monthsOperated = differenceInMonths(new Date(), service.operatingSince)
|
||||
return {
|
||||
show: true,
|
||||
description: `The service started operations ${
|
||||
@@ -296,10 +295,9 @@ export const nonDbAttributes: NonDbAttributeFull[] = [
|
||||
trustPoints: 5,
|
||||
links: [],
|
||||
customize: (service) => {
|
||||
const started = service.operatingSince as unknown as Date | null
|
||||
if (!started) return { show: false }
|
||||
if (!service.operatingSince) return { show: false }
|
||||
|
||||
const yearsOperated = differenceInYears(new Date(), started)
|
||||
const yearsOperated = differenceInYears(new Date(), service.operatingSince)
|
||||
return {
|
||||
show: yearsOperated >= 2,
|
||||
description: `This service has been operational for **${String(
|
||||
|
||||
@@ -45,7 +45,6 @@ function prismaClientSingleton() {
|
||||
}
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line no-var
|
||||
var prisma: ReturnType<typeof prismaClientSingleton> | undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user