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

@Injectable()
export class IamCreateBoundedContextsService {
  constructor(private readonly repository: IamSequelizeBoundedContextRepository) {}

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