Browse Source

Switching logic for lazy evaluation.

pull/4023/head
mike12345567 5 years ago
parent
commit
aa51bf7f07
  1. 2
      packages/server/src/middleware/builder.js

2
packages/server/src/middleware/builder.js

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

Loading…
Cancel
Save