Fixed cron on create S3

This commit is contained in:
Gabriel Rosa
2022-06-08 10:31:59 -03:00
parent d89573bc79
commit 4e2e296442
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -1,7 +1,6 @@
import { OnModuleInit, Inject } from '@nestjs/common';
import { ClientGrpc } from '@nestjs/microservices';
import {
InputCreateResponse,
InputCreateS3Request,
InputNewCreateRequest,
InputService,
+3 -1
View File
@@ -153,7 +153,7 @@ export class InputsService {
}
generateInputS3Payload(payload) {
const { credentials, plugin } = payload;
const { credentials, plugin, cron } = payload;
if (!credentials) return payload;
const {
@@ -164,8 +164,10 @@ export class InputsService {
client_bucket,
file_to_extract,
} = credentials;
const formatedPayload = {
plugin,
cron,
source_bucket: client_bucket,
source_prefix: file_to_extract,
auth_parameters: {