Skip to content

Commit 940503e

Browse files
committed
FLS-1452 - Stop loading forms from fsd_config into cache on app startup
We are going to fetch forms from the Pre-Award API instead. We need to keep the loading of specific forms to ensure unit tests pass.
1 parent d30c488 commit 940503e

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

runner/src/server/plugins/ConfigureFormsPlugin.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import path from "path";
22
import {plugin} from "./engine/MainPlugin";
33

4-
import {loadForms} from "./engine/service/ConfigurationFormsService";
54
import {idFromFilename} from "../../../../digital-form-builder/runner/src/server/plugins/engine/helpers";
65
import {
76
FormConfiguration
@@ -15,7 +14,7 @@ const relativeTo = __dirname;
1514

1615
export const ConfigureFormsPlugin: ConfigureEnginePluginType = (
1716
formFileName, formFilePath, options?: EngineOptions) => {
18-
let configs: FormConfiguration[];
17+
let configs: FormConfiguration[] = [];
1918

2019
if (formFileName && formFilePath) {
2120
configs = [
@@ -24,8 +23,6 @@ export const ConfigureFormsPlugin: ConfigureEnginePluginType = (
2423
id: idFromFilename(formFileName)
2524
}
2625
];
27-
} else {
28-
configs = loadForms();
2926
}
3027

3128
const modelOptions = {

runner/src/server/plugins/engine/service/ConfigurationFormsService.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)