1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Fix type check errors.

This commit is contained in:
Sam Rose 2024-03-14 11:19:04 +00:00
parent 945efd7aa6
commit 76e1a4b7da
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -742,7 +742,7 @@ describe.each([
it("should throw an error if view doesn't exist", async () => {
const rowUsage = await getRowUsage()
await config.api.legacyView.get("derp", { status: 404 })
await config.api.legacyView.get("derp", undefined, { status: 404 })
await assertRowUsage(rowUsage)
})

View file

@ -4,7 +4,7 @@ import { Row, View, ViewCalculation } from "@budibase/types"
export class LegacyViewAPI extends TestAPI {
get = async (
id: string,
query: { calculation: ViewCalculation; group?: string },
query?: { calculation: ViewCalculation; group?: string },
expectations?: Expectations
) => {
return await this._get<Row[]>(`/api/views/${id}`, { query, expectations })