Formatting
This commit is contained in:
parent
a54b582e0d
commit
095e513f9f
|
@ -65,7 +65,7 @@
|
||||||
<Body size="S">
|
<Body size="S">
|
||||||
{#if app.updatedAt}
|
{#if app.updatedAt}
|
||||||
{processStringSync("Updated {{ duration time 'millisecond' }} ago", {
|
{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}
|
{:else}
|
||||||
Never updated
|
Never updated
|
||||||
|
|
|
@ -14,8 +14,6 @@ const WEBHOOK_ENDPOINTS = new RegExp(
|
||||||
["webhooks/trigger", "webhooks/schema"].join("|")
|
["webhooks/trigger", "webhooks/schema"].join("|")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = (permType, permLevel = null) => async (ctx, next) => {
|
module.exports = (permType, permLevel = null) => async (ctx, next) => {
|
||||||
// webhooks don't need authentication, each webhook unique
|
// webhooks don't need authentication, each webhook unique
|
||||||
if (WEBHOOK_ENDPOINTS.test(ctx.request.url)) {
|
if (WEBHOOK_ENDPOINTS.test(ctx.request.url)) {
|
||||||
|
|
|
@ -44,7 +44,7 @@ async function updateAppUpdatedAt(ctx) {
|
||||||
const appId = ctx.appId
|
const appId = ctx.appId
|
||||||
// if debouncing skip this update
|
// if debouncing skip this update
|
||||||
// get methods also aren't updating
|
// get methods also aren't updating
|
||||||
if (await checkDebounce(appId) || ctx.method === "GET") {
|
if ((await checkDebounce(appId)) || ctx.method === "GET") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const db = new CouchDB(appId)
|
const db = new CouchDB(appId)
|
||||||
|
|
Loading…
Reference in New Issue