1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00
This commit is contained in:
Pedro Silva 2023-04-14 18:14:47 +01:00
parent 3147eb2892
commit f104e66acf

View file

@ -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,
})