Enormous refactor adding IndexedDB space and syncing.
This commit is contained in:
@@ -68,6 +68,7 @@ export class ExpressServer {
|
||||
|
||||
// Page list
|
||||
fsRouter.route("/").get(async (req, res) => {
|
||||
res.header("Now-Timestamp", "" + Date.now());
|
||||
res.json(await this.storage.listPages());
|
||||
});
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ export class DiskStorage implements Storage {
|
||||
if (lastModified) {
|
||||
let d = new Date(lastModified);
|
||||
console.log("Going to set the modified time", d);
|
||||
await utimes(localPath, lastModified, lastModified);
|
||||
await utimes(localPath, d, d);
|
||||
}
|
||||
// Fetch new metadata
|
||||
const s = await stat(localPath);
|
||||
|
||||
Reference in New Issue
Block a user