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

Switching logic for lazy evaluation.

This commit is contained in:
mike12345567 2021-05-21 15:03:28 +01:00
parent 2da319e960
commit ae8e88f426

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 (ctx.method === "GET" || (await checkDebounce(appId))) {
return
}
const db = new CouchDB(appId)