Add comments to createDataExtensionYamlsForFrameworkMode too

This commit is contained in:
Robert
2023-07-19 16:22:00 +01:00
parent 5b170d02eb
commit bb246144c2

View File

@@ -168,12 +168,15 @@ export function createDataExtensionYamlsForFrameworkMode(
const methods: Record<string, ModeledMethod> = {};
// First populate methodsByLibraryFilename with any existing modeled methods.
for (const [signature, method] of Object.entries(
existingModeledMethods[filename] || {},
)) {
methods[signature] = method;
}
// Add the new modeled methods, potentially overwriting existing modeled methods
// but not removing existing modeled methods that are not in the new set.
for (const externalApiUsage of externalApiUsages) {
const modeledMethod = newModeledMethods[externalApiUsage.signature];
if (modeledMethod) {