Fix type
This commit is contained in:
parent
3147eb2892
commit
f104e66acf
|
@ -2,7 +2,7 @@ import { Response } from "node-fetch"
|
||||||
import {
|
import {
|
||||||
Datasource,
|
Datasource,
|
||||||
CreateDatasourceResponse,
|
CreateDatasourceResponse,
|
||||||
UpdatedDatasourceResponse,
|
UpdateDatasourceResponse,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import BudibaseInternalAPIClient from "../BudibaseInternalAPIClient"
|
import BudibaseInternalAPIClient from "../BudibaseInternalAPIClient"
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export default class DatasourcesAPI {
|
||||||
return [response, json]
|
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}`, {
|
const [response, json] = await this.client.put(`/datasources/${body._id}`, {
|
||||||
body,
|
body,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue