From 9fdda99c64d4397f88a8ed46ae6a10094f3f2570 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Sat, 2 Apr 2022 22:36:34 -0500 Subject: [PATCH] Removed sync from development environment --- server/bin/www | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/bin/www b/server/bin/www index d9560f9..ac634b5 100644 --- a/server/bin/www +++ b/server/bin/www @@ -29,10 +29,6 @@ async function connectDatabase() { console.log( `[INFO]: Database connection to '${process.env.NODE_ENV}' has been established successfully.` ); - if (process.env.NODE_ENV == 'development') { - await sequelize.sync({ force: 'true' }); - console.log('[INFO]: Wiping all tables on database'); - } } catch (error) { console.log('[ERROR]: Unable to connect to the database;', error); }