From 02feb975a272498d0f1adc87c66c155209b6c8c0 Mon Sep 17 00:00:00 2001
From: Ramiro <rbentancor@globaluy.com>
Date: Fri, 15 Oct 2021 20:15:25 -0300
Subject: [PATCH] Users sync

---
 src/index.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/index.ts b/src/index.ts
index 6bed781..e791bce 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -5,6 +5,7 @@ import cors from 'cors';
 import swaggerJsDoc, { Options } from 'swagger-jsdoc';
 import swaggerUi from 'swagger-ui-express';
 import Routes from './routes';
+import { User } from './models/users.model';
 
 const app: Application = express();
 const PORT = process.env.PORT || 3000;
@@ -42,6 +43,8 @@ app.use(express.raw({
   limit: '50mb',
 }));
 
+User.sync();
+
 app.use(Routes);
 
 app.listen(PORT, (): void => {
-- 
GitLab