aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-05-13 19:07:43 -0400
committerAdam Soltys <[email protected]>2021-06-04 22:38:18 -0700
commitfd758f1afb5f8b18b41a2f924382f0e159bc34be (patch)
treecf1bf8fdf18c258d89ced92801a66b4366231a5f
parent793845b3b94b3dd85ebda980b3a81e09613649d7 (diff)
downloadcoinos-server-fd758f1afb5f8b18b41a2f924382f0e159bc34be.tar.gz
coinos-server-fd758f1afb5f8b18b41a2f924382f0e159bc34be.zip
fixups for dev
-rw-r--r--config/samples/index.sample.js12
-rw-r--r--db/normalized/referrals.js13
-rw-r--r--db/normalized/waiting_list.js4
3 files changed, 17 insertions, 12 deletions
diff --git a/config/samples/index.sample.js b/config/samples/index.sample.js
index ed1c448b..0bad1736 100644
--- a/config/samples/index.sample.js
+++ b/config/samples/index.sample.js
@@ -75,4 +75,16 @@ module.exports = {
bidMultiplier: 0.99,
}
],
+ mailgun: {
+ domain: "coinos.io",
+ apiKey: "key-59cd7eaxxxxxxxxxxxxxxxxxxx"
+ },
+ imap: {
+ password: "xxxxxxxxxxxxx",
+ host: "imap.mailserver.com",
+ port: 993,
+ tls: true,
+ accounts: { "STRING_TO_GREP_FOR": 999999 },
+ }
}
diff --git a/db/normalized/referrals.js b/db/normalized/referrals.js
index 5b93ba3f..2458ef19 100644
--- a/db/normalized/referrals.js
+++ b/db/normalized/referrals.js
@@ -1,8 +1,5 @@
-const { DataTypes } = require('sequelize/types');
-const config = require('./../config')
-const dbc = require('knex')(config.knex)
-
-const { DataTypes } = require('sequelize');
+const Sequelize = require('sequelize');
+const { DataTypes } = Sequelize;
const attributes = {
id: {
@@ -13,13 +10,13 @@ const attributes = {
},
sponsor_id: {
type: DataTypes.INTEGER(11),
- references: { model: User, key: 'id' },
+ references: { model: db.User, key: 'id' },
allowNull: false,
comment: "Referral made by this user"
},
user_id: {
type: DataTypes.INTEGER(11),
- references: { model: User, key: 'id' },
+ references: { model: db.User, key: 'id' },
allowNull: true,
comment: "Referral granted to this user (updated when token used)"
},
@@ -73,4 +70,4 @@ db["Referral"] = db.define("referrals_model", attributes, options);
// table.dateTime('created_at').notNullable().defaultTo(knex.raw('CURRENT_TIMESTAMP'))
// table.dateTime('updated_at').notNullable().defaultTo(knex.raw('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'))
-// }) \ No newline at end of file
+// })
diff --git a/db/normalized/waiting_list.js b/db/normalized/waiting_list.js
index c849f34f..8803066b 100644
--- a/db/normalized/waiting_list.js
+++ b/db/normalized/waiting_list.js
@@ -1,7 +1,3 @@
-const { DataTypes } = require('sequelize/types');
-const config = require('./../config')
-const dbc = require('knex')(config.knex)
-
const { DataTypes } = require('sequelize');
const attributes = {