mirror of
https://github.com/tormachris/cf-workers-status-page.git
synced 2025-07-05 03:22:47 +02:00
feat(cron): detect and save location of last check
This commit is contained in:
@ -2,5 +2,5 @@ import { processCronTrigger } from '../../src/functions/cronTrigger'
|
||||
|
||||
export default async event => {
|
||||
// used only for local debugging
|
||||
//return processCronTrigger()
|
||||
//return processCronTrigger(event)
|
||||
}
|
||||
|
@ -79,12 +79,10 @@ export default function Index({
|
||||
? config.settings.allmonitorsOperational
|
||||
: config.settings.notAllmonitorsOperational}
|
||||
</div>
|
||||
{typeof window !== 'undefined' ? (
|
||||
{kvLastUpdate.metadata && typeof window !== 'undefined' && (
|
||||
<div className="black-text">
|
||||
checked {Math.round((Date.now() - kvLastUpdate) / 1000)} sec ago
|
||||
checked {Math.round((Date.now() - kvLastUpdate.value) / 1000)} sec ago (from {kvLastUpdate.metadata.loc})
|
||||
</div>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user