Switching logic for lazy evaluation.
This commit is contained in:
parent
ede7e38442
commit
aa51bf7f07
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue