(params: {
logger: Logger;
context: ImpureGraphContext;
})
| 10 | * method is designed to be run before the system types are initialized. |
| 11 | */ |
| 12 | export const ensureHashSystemAccountExists = async (params: { |
| 13 | logger: Logger; |
| 14 | context: ImpureGraphContext; |
| 15 | }) => { |
| 16 | const { logger, context } = params; |
| 17 | |
| 18 | systemAccountId = await context.graphApi |
| 19 | .getOrCreateSystemMachine("h") |
| 20 | .then(({ data: machineId }) => machineId as MachineId); |
| 21 | |
| 22 | logger.info(`Using system account ${systemAccountId}`); |
| 23 | }; |
no test coverage detected