export async function getInspectionBookings(
client: Client,
startIndex?: number
) {
console.log(startIndex, startIndex! + 10)
return client
.from(table)
.select(
`
*,
property,
object_form (
formd (
id,
formt_id,
sub_category(
sub_category_id,
category (
id
)
)
)
),
clients{
id
,
workspace{
id
}
`,
{
count: "exact",
}
)
.range(startIndex || 0, startIndex ? startIndex + 10 : 10)
// .throwOnError()
}
export async function getInspectionBookings(
client: Client,
startIndex?: number
) {
console.log(startIndex, startIndex! + 10)
return client
.from(table)
.select(
`
*,
property,
object_form (
formd (
id,
formt_id,
sub_category(
sub_category_id,
category (
id
)
)
)
),
clients{
id
,
workspace{
id
}
`,
{
count: "exact",
}
)
.range(startIndex || 0, startIndex ? startIndex + 10 : 10)
// .throwOnError()
}