/**
 * @aurora-catalyst-generated
 * @source cliter/iam/account.aurora.yaml
 */
import { IamSequelizeAccountRepository } from '@app/iam/account';
import { HandlerMeta } from '@aurorajs.dev/core-back';
import { Injectable } from '@nestjs/common';

@Injectable()
export class IamCreateAccountsService {
  constructor(private readonly repository: IamSequelizeAccountRepository) {}

  async main(payload: any[], handlerMeta?: HandlerMeta): Promise<void> {
    await this.repository.insert(payload, {
      insertOptions: handlerMeta?.repositoryOptions,
    });
  }
}
