PR Feedback
This commit is contained in:
parent
f0c498cedb
commit
4091dff6d3
|
@ -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
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
export * from "./backup"
|
||||
export * from "./datasource"
|
||||
export * from "./row"
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue