Skip to content

Commit

Permalink
perf(io): unify the usage of BaaS.TableObject
Browse files Browse the repository at this point in the history
  • Loading branch information
anran758 committed Apr 1, 2024
1 parent ef1dba7 commit 5b3132f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/io/src/operations.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { getBaaS, getBaseIo } from './baas';
import { getBaseIo } from './baas';

import type { Operation, DeleteOperation, UpdateOperation } from './type';
import { DEFAULT_ENABLE_TRIGGER } from './config';

const io = getBaseIo();
export function createTableOperation(tableName: string): Operation {
const BaaS = getBaaS();
return {
get table() {
return new BaaS.TableObject(tableName);
return io.table(tableName);
},

/**
Expand Down

0 comments on commit 5b3132f

Please sign in to comment.