Linting.
This commit is contained in:
parent
cffb78e93b
commit
b310d7c5a7
|
@ -387,7 +387,9 @@ export async function destroy(ctx: UserCtx) {
|
||||||
return tableToDelete
|
return tableToDelete
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function bulkImport(ctx: UserCtx<BulkImportRequest, BulkImportResponse>) {
|
export async function bulkImport(
|
||||||
|
ctx: UserCtx<BulkImportRequest, BulkImportResponse>
|
||||||
|
) {
|
||||||
const table = await sdk.tables.getTable(ctx.params.tableId)
|
const table = await sdk.tables.getTable(ctx.params.tableId)
|
||||||
const { rows } = ctx.request.body
|
const { rows } = ctx.request.body
|
||||||
const schema = table.schema
|
const schema = table.schema
|
||||||
|
|
|
@ -99,7 +99,9 @@ export async function destroy(ctx: UserCtx) {
|
||||||
builderSocket?.emitTableDeletion(ctx, deletedTable)
|
builderSocket?.emitTableDeletion(ctx, deletedTable)
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function bulkImport(ctx: UserCtx<BulkImportRequest, BulkImportResponse>) {
|
export async function bulkImport(
|
||||||
|
ctx: UserCtx<BulkImportRequest, BulkImportResponse>
|
||||||
|
) {
|
||||||
const tableId = ctx.params.tableId
|
const tableId = ctx.params.tableId
|
||||||
let tableBefore = await sdk.tables.getTable(tableId)
|
let tableBefore = await sdk.tables.getTable(tableId)
|
||||||
let tableAfter = await pickApi({ tableId }).bulkImport(ctx)
|
let tableAfter = await pickApi({ tableId }).bulkImport(ctx)
|
||||||
|
|
|
@ -208,7 +208,9 @@ export async function destroy(ctx: any) {
|
||||||
return tableToDelete
|
return tableToDelete
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function bulkImport(ctx: UserCtx<BulkImportRequest, BulkImportResponse>) {
|
export async function bulkImport(
|
||||||
|
ctx: UserCtx<BulkImportRequest, BulkImportResponse>
|
||||||
|
) {
|
||||||
const table = await sdk.tables.getTable(ctx.params.tableId)
|
const table = await sdk.tables.getTable(ctx.params.tableId)
|
||||||
const { rows, identifierFields } = ctx.request.body
|
const { rows, identifierFields } = ctx.request.body
|
||||||
await handleDataImport(ctx.user, table, rows, identifierFields)
|
await handleDataImport(ctx.user, table, rows, identifierFields)
|
||||||
|
|
Loading…
Reference in New Issue