Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jan 25, 2024
1 parent 68bab69 commit 7a7cece
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 7 additions & 1 deletion services/rotor/src/lib/entity-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ const refreshFunc =
if (lmString) {
lastModified = new Date(lmString);
}
log.atInfo().log(`Headers: ${JSON.stringify(res.headers)} lastModified: ${lastModified}`);
log
.atInfo()
.log(
`Headers: ${JSON.stringify(res.headers)} lastModified: ${lastModified} status: ${
res.status
} body: ${JSON.stringify(json)}`
);
log.atInfo().log(`${storeId} updated: ${lastModified} previous update date: ${ifModifiedSince}`);
return {
store: {
Expand Down
5 changes: 0 additions & 5 deletions webapps/console/pages/api/admin/export/[name]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,6 @@ export function notModified(ifModifiedSince: Date | undefined, lastModified: Dat
const lastModifiedCopy = new Date(lastModified.getTime());
// Last-Modified and If-Modified-Since headers are not precise enough, so we need to round it to seconds
lastModifiedCopy.setMilliseconds(0);
console.log(
`Comparing ${ifModifiedSince} and ${lastModifiedCopy}. Not modified: ${
ifModifiedSince.getTime() >= lastModifiedCopy.getTime()
}`
);
return ifModifiedSince.getTime() >= lastModifiedCopy.getTime();
}

Expand Down

0 comments on commit 7a7cece

Please sign in to comment.