Function
getServerRecord
(serverName: string, serverVersion: string)
Source from the content-addressed store, hash-verified
| 84 | }; |
| 85 | |
| 86 | const getServerRecord = async (serverName: string, serverVersion: string) => { |
| 87 | const storageData = await StorageMain.read("server", null); |
| 88 | const records = storageData?.records || []; |
| 89 | return records.find( |
| 90 | (r: any) => r.name === serverName && r.version === serverVersion, |
| 91 | ); |
| 92 | }; |
| 93 | |
| 94 | const buildModelConfig = ( |
| 95 | funcName: string, |
Tested by
no test coverage detected