mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-28 08:19:07 +00:00
REFACTOR: Att Functions + Alpha Clients connection
This commit is contained in:
@@ -10,7 +10,7 @@ export class InputsClientConfiguration {
|
||||
options: {
|
||||
url: process.env.INFACTORY_URL,
|
||||
package: 'input',
|
||||
// credentials: credentials.createSsl(),
|
||||
credentials: credentials.createSsl(),
|
||||
protoPath: InputProtofile,
|
||||
loader: {
|
||||
enums: String,
|
||||
|
||||
@@ -105,11 +105,9 @@ export class InputsClientService implements OnModuleInit {
|
||||
|
||||
async update(updateInputDTO:UpdateInputRequest) {
|
||||
console.log('InputClientService', 'Update');
|
||||
console.log(updateInputDTO)
|
||||
const updateInputResponse = await new Promise((resolve, reject) => {
|
||||
this.inputService.Update(updateInputDTO).subscribe({
|
||||
next(x) {
|
||||
console.log(x)
|
||||
resolve(x);
|
||||
},
|
||||
error(err) {
|
||||
|
||||
Vendored
+2
-2
@@ -30,7 +30,7 @@ interface Cron {
|
||||
|
||||
export interface ICreateInputRequest {
|
||||
|
||||
cron: Cron;
|
||||
cron: string;
|
||||
name: string;
|
||||
plugin: string;
|
||||
values: Values;
|
||||
@@ -43,7 +43,7 @@ export interface IIdRequest{
|
||||
|
||||
interface UpdateInputRequest {
|
||||
id: string;
|
||||
cron: Cron;
|
||||
cron: string;
|
||||
name: string;
|
||||
plugin: string;
|
||||
values: Values;
|
||||
|
||||
Reference in New Issue
Block a user