1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-02-07 14:19:18 +00:00
bramw_baserow/e2e-tests/fixtures/rows.ts
2023-07-05 16:01:03 +00:00

17 lines
500 B
TypeScript

import { getClient } from '../client'
import { faker } from '@faker-js/faker'
import {Database} from "./database";
import {User} from "./user";
export class Table {
constructor(
public id: number,
public name: string,
public database: Database
) {
}
}
export async function updateRows(user: User, table: Table, rowValues: any): Promise<void> {
await getClient(user).patch(`database/rows/table/${table.id}/batch/?user_field_names=true`, {items: rowValues})
}