Refactoring: use theme instead of layout in a lot of places

This commit is contained in:
Pieter Vander Vennet 2024-10-17 04:06:03 +02:00
parent 9427083939
commit bdc9ba52a6
104 changed files with 445 additions and 449 deletions

View file

@ -15,7 +15,7 @@ type ErrorMessage = {
message: {
stacktrace: string
message: string
layout: string
theme: string
version: string
language: string
username: string
@ -40,7 +40,7 @@ class HandleErrors extends Script {
) {
console.log(
parsed.message.username,
parsed.message.layout,
parsed.message.theme,
parsed.message.message,
parsed.date
)
@ -82,7 +82,7 @@ class HandleErrors extends Script {
} = changesObj.CreateChangesetObjects(toUpload, objects, true)
const changeset = Changes.buildChangesetXML("", changes)
const path = "error_changeset_" + parsed.index + "_" + e.layout + "_" + e.username + ".osc"
const path = "error_changeset_" + parsed.index + "_" + e.theme + "_" + e.username + ".osc"
if (
changeset ===
`<osmChange version='0.6' generator='Mapcomplete ${Constants.vNumber}'></osmChange>`