aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/GarbageCollector.ts2
-rw-r--r--src/server/index.ts9
2 files changed, 1 insertions, 10 deletions
diff --git a/src/server/GarbageCollector.ts b/src/server/GarbageCollector.ts
index ea5388004..09b52eadf 100644
--- a/src/server/GarbageCollector.ts
+++ b/src/server/GarbageCollector.ts
@@ -13,7 +13,7 @@ function addDoc(doc: any, ids: string[], files: { [name: string]: string[] }) {
if (field === undefined || field === null) {
continue;
}
- if (field.__type === "proxy") {
+ if (field.__type === "proxy" || field.__type === "prefetch_proxy") {
ids.push(field.fieldId);
} else if (field.__type === "list") {
addDoc(field.fields, ids, files);
diff --git a/src/server/index.ts b/src/server/index.ts
index a0101e3f8..29b44713c 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -175,15 +175,6 @@ const read_text_file = (relativePath: string) => {
});
};
-app.get('/layoutscripts', (req, res) => {
- let prefix = '../scraping/buxton/scripts/';
- read_text_file(prefix + 'initialization.txt').then(arrangeInit => {
- read_text_file(prefix + 'layout.txt').then(arrangeScript => {
- res.send(JSON.stringify({ arrangeInit, arrangeScript }));
- });
- });
-});
-
app.get("/version", (req, res) => {
exec('"C:\\Program Files\\Git\\bin\\git.exe" rev-parse HEAD', (err, stdout, stderr) => {
if (err) {