@winible/winible-typed 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/typed-model/pb-sequelize.ts +4 -22
package/package.json
CHANGED
@@ -13,31 +13,13 @@ const dbUrl =
|
|
13
13
|
process.env.ENVIRONMENT === "test"
|
14
14
|
? process.env.TESTING_DATABASE_URL
|
15
15
|
: process.env.DATABASE_URL;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
// dialectOptions: {
|
20
|
-
// ssl: {
|
21
|
-
// require: true,
|
22
|
-
// rejectUnauthorized: false, // <<<<<<< YOU NEED THIS
|
23
|
-
// },
|
24
|
-
// },
|
25
|
-
// });
|
26
|
-
const sequelize = new Sequelize({
|
27
|
-
username: "postgres",
|
28
|
-
password: "l5WFq6a50%m4",
|
29
|
-
database: "winible",
|
30
|
-
host: "winible-v2-staging.cd9ez5rrajpu.us-east-1.rds.amazonaws.com",
|
31
|
-
dialect: "postgres",
|
32
|
-
ssl: false,
|
16
|
+
export default new Sequelize(dbUrl!, {
|
17
|
+
logging: false,
|
18
|
+
minifyAliases: true,
|
33
19
|
dialectOptions: {
|
34
20
|
ssl: {
|
35
21
|
require: true,
|
36
|
-
rejectUnauthorized: false,
|
22
|
+
rejectUnauthorized: false, // <<<<<<< YOU NEED THIS
|
37
23
|
},
|
38
24
|
},
|
39
25
|
});
|
40
|
-
|
41
|
-
sequelize.sync({ force: true });
|
42
|
-
|
43
|
-
export default sequelize;
|