mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-20 11:26:07 +00:00
fix: linter error
This commit is contained in:
@@ -135,6 +135,7 @@ export default function PipelineFormComponent({
|
|||||||
function handleCreate(values: FormValues) {
|
function handleCreate(values: FormValues) {
|
||||||
console.log('handleCreate', values);
|
console.log('handleCreate', values);
|
||||||
const pipeline: Pipeline = {
|
const pipeline: Pipeline = {
|
||||||
|
config: {},
|
||||||
description: values.basic.description,
|
description: values.basic.description,
|
||||||
name: values.basic.name,
|
name: values.basic.name,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -263,7 +263,9 @@ class HttpClient {
|
|||||||
return this.get(`/api/v1/pipelines/${uuid}`);
|
return this.get(`/api/v1/pipelines/${uuid}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public createPipeline(pipeline: Pipeline): Promise<object> {
|
public createPipeline(pipeline: Pipeline): Promise<{
|
||||||
|
uuid: string;
|
||||||
|
}> {
|
||||||
return this.post('/api/v1/pipelines', pipeline);
|
return this.post('/api/v1/pipelines', pipeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user