1
0
Fork 0
mirror of synced 2024-06-22 04:10:54 +12:00

Formatting

This commit is contained in:
mike12345567 2021-05-21 14:49:59 +01:00
parent 4653471412
commit 96ad77b41d
3 changed files with 3 additions and 5 deletions

View file

@ -65,7 +65,7 @@
<Body size="S">
{#if app.updatedAt}
{processStringSync("Updated {{ duration time 'millisecond' }} ago", {
time: (new Date().getTime() - new Date(app.updatedAt).getTime())
time: new Date().getTime() - new Date(app.updatedAt).getTime(),
})}
{:else}
Never updated

View file

@ -14,8 +14,6 @@ const WEBHOOK_ENDPOINTS = new RegExp(
["webhooks/trigger", "webhooks/schema"].join("|")
)
module.exports = (permType, permLevel = null) => async (ctx, next) => {
// webhooks don't need authentication, each webhook unique
if (WEBHOOK_ENDPOINTS.test(ctx.request.url)) {

View file

@ -44,7 +44,7 @@ async function updateAppUpdatedAt(ctx) {
const appId = ctx.appId
// if debouncing skip this update
// get methods also aren't updating
if (await checkDebounce(appId) || ctx.method === "GET") {
if ((await checkDebounce(appId)) || ctx.method === "GET") {
return
}
const db = new CouchDB(appId)
@ -72,4 +72,4 @@ module.exports = async (ctx, permType) => {
await checkDevAppLocks(ctx)
// set updated at time on app
await updateAppUpdatedAt(ctx)
}
}