Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike12345567 committed Oct 11, 2023
1 parent 48a7aa7 commit b855f09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/server/src/api/controllers/table/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ export async function destroy(ctx: UserCtx) {
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 { rows } = ctx.request.body
const schema = table.schema
Expand Down
4 changes: 3 additions & 1 deletion packages/server/src/api/controllers/table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export async function destroy(ctx: UserCtx) {
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
let tableBefore = await sdk.tables.getTable(tableId)
let tableAfter = await pickApi({ tableId }).bulkImport(ctx)
Expand Down
4 changes: 3 additions & 1 deletion packages/server/src/api/controllers/table/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ export async function destroy(ctx: any) {
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 { rows, identifierFields } = ctx.request.body
await handleDataImport(ctx.user, table, rows, identifierFields)
Expand Down

0 comments on commit b855f09

Please sign in to comment.