From f104e66acf1c9885d5706e627ffb9e7b7eeaeaa7 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Fri, 14 Apr 2023 18:14:47 +0100 Subject: [PATCH] Fix type --- qa-core/src/internal-api/api/apis/DatasourcesAPI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa-core/src/internal-api/api/apis/DatasourcesAPI.ts b/qa-core/src/internal-api/api/apis/DatasourcesAPI.ts index 7b9d7af789..f29bb9d6bc 100644 --- a/qa-core/src/internal-api/api/apis/DatasourcesAPI.ts +++ b/qa-core/src/internal-api/api/apis/DatasourcesAPI.ts @@ -2,7 +2,7 @@ import { Response } from "node-fetch" import { Datasource, CreateDatasourceResponse, - UpdatedDatasourceResponse, + UpdateDatasourceResponse, } from "@budibase/types" import BudibaseInternalAPIClient from "../BudibaseInternalAPIClient" @@ -46,7 +46,7 @@ export default class DatasourcesAPI { return [response, json] } - async update(body: any): Promise<[Response, UpdatedDatasourceResponse]> { + async update(body: any): Promise<[Response, UpdateDatasourceResponse]> { const [response, json] = await this.client.put(`/datasources/${body._id}`, { body, })