PR Feedback

This commit is contained in:
Dean 2023-07-24 10:30:29 +01:00
parent f0c498cedb
commit 4091dff6d3
4 changed files with 13 additions and 11 deletions

View File

@ -102,7 +102,7 @@ export async function find(ctx: any) {
export async function destroy(ctx: UserCtx<DeleteRowRequest>) {
const appId = ctx.appId
const inputs: DeleteRowRequest = ctx.request.body
const inputs = ctx.request.body
const tableId = utils.getTableId(ctx)
let response, row

View File

@ -1,2 +1,3 @@
export * from "./backup"
export * from "./datasource"
export * from "./row"

View File

@ -0,0 +1,11 @@
import { Row } from "../../../documents/app/row"
export interface DeleteRows {
rows: (Row | string)[]
}
export interface DeleteRow {
_id: string
}
export type DeleteRowRequest = DeleteRows | DeleteRow

View File

@ -32,13 +32,3 @@ export interface Row extends Document {
tableId?: string
[key: string]: any
}
export interface DeleteRows {
rows: (Row | string)[]
}
export interface DeleteRow {
_id: string
}
export type DeleteRowRequest = DeleteRows | DeleteRow