just some comment cleanup

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-02-01 13:48:51 +01:00
parent bcd8f0b2fe
commit d9c8720dd4
11 changed files with 25 additions and 23 deletions
@@ -89,23 +89,23 @@ export class FrobsProvider implements EntityProvider {
private readonly reader: UrlReader;
private connection?: EntityProviderConnection;
/** [1] **/
/** [1] */
constructor(env: string, reader: UrlReader) {
this.env = env;
this.reader = reader;
}
/** [2] **/
/** [2] */
getProviderName(): string {
return `frobs-${this.env}`;
}
/** [3] **/
/** [3] */
async connect(connection: EntityProviderConnection): Promise<void> {
this.connection = connection;
}
/** [4] **/
/** [4] */
async run(): Promise<void> {
if (!this.connection) {
throw new Error('Not initialized');
@@ -116,10 +116,10 @@ export class FrobsProvider implements EntityProvider {
);
const data = JSON.parse(await response.buffer()).toString();
/** [5] **/
/** [5] */
const entities: Entity[] = frobsToEntities(data);
/** [6] **/
/** [6] */
await this.connection.applyMutation({
type: 'full',
entities: entities.map(entity => ({