From 421ff773d41aea53c4158554dd6527e2468eaeaa Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Mon, 18 May 2020 16:15:08 -0700 Subject: [PATCH] fix --- api/utils/setup.ts | 2 +- dist/api/utils/setup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/utils/setup.ts b/api/utils/setup.ts index e0892c5..aad0799 100644 --- a/api/utils/setup.ts +++ b/api/utils/setup.ts @@ -36,7 +36,7 @@ async function migrate(){ addTableColumn('sphinx_chats', 'host') addTableColumn('sphinx_chats', 'price_to_join', 'BIGINT') addTableColumn('sphinx_chats', 'price_per_message', 'BIGINT') - addTableColumn('sphinx_contacts', 'sender_alias') + addTableColumn('sphinx_messages', 'sender_alias') try{ await sequelize.query(` CREATE TABLE sphinx_chat_members ( diff --git a/dist/api/utils/setup.js b/dist/api/utils/setup.js index b882bd7..e1ed979 100644 --- a/dist/api/utils/setup.js +++ b/dist/api/utils/setup.js @@ -49,7 +49,7 @@ function migrate() { addTableColumn('sphinx_chats', 'host'); addTableColumn('sphinx_chats', 'price_to_join', 'BIGINT'); addTableColumn('sphinx_chats', 'price_per_message', 'BIGINT'); - addTableColumn('sphinx_contacts', 'sender_alias'); + addTableColumn('sphinx_messages', 'sender_alias'); try { yield models_1.sequelize.query(` CREATE TABLE sphinx_chat_members (