Skip to content

Commit 1456e5d

Browse files
committed
chore: use the correct command
1 parent a411b23 commit 1456e5d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ const {
5151
} = require("./databases");
5252
const {
5353
tablesDBGet,
54-
tablesDBGetTable
54+
tablesDBGetTable,
55+
tablesDBUpdateTable,
56+
tablesDBCreateTable
5557
} = require("./tables-db");
5658
const {
5759
storageGetBucket, storageUpdateBucket, storageCreateBucket
@@ -1753,7 +1755,7 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
17531755
});
17541756

17551757
if (remoteTable.name !== table.name) {
1756-
await databasesUpdateTable({
1758+
await tablesDBUpdateTable({
17571759
databaseId: table['databaseId'],
17581760
tableId: table['$id'],
17591761
name: table.name,
@@ -1770,7 +1772,7 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
17701772
(e) {
17711773
if (Number(e.code) === 404) {
17721774
log(`Table ${table.name} does not exist in the project. Creating ... `);
1773-
await databasesCreateTable({
1775+
await tablesDBCreateTable({
17741776
databaseId: table['databaseId'],
17751777
tableId: table['$id'],
17761778
name: table.name,

0 commit comments

Comments
 (0)