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

@Injectable()
export class IamCreateUsersService {
  constructor(private readonly repository: IamSequelizeUserRepository) {}

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