Skip to content

Commit

Permalink
fix: bug in seed that is trying to insert 'type' column which has bee…
Browse files Browse the repository at this point in the history
…n deleted in the db schema
  • Loading branch information
dadiorchen committed Feb 24, 2021
1 parent 346161f commit 5bd44ab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions __tests__/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const wallet = {
password: 'test1234',
passwordHash: '31dd4fe716e1a908f0e9612c1a0e92bfdd9f66e75ae12244b4ee8309d5b869d435182f5848b67177aa17a05f9306e23c10ba41675933e2cb20c66f1b009570c1',
salt: 'TnDe2LDPS7VaPD9GQWL3fhG4jk194nde',
type: 'p',
};

const capture = {
Expand All @@ -35,7 +34,6 @@ const walletB = {
password: 'test1234',
passwordHash: '31dd4fe716e1a908f0e9612c1a0e92bfdd9f66e75ae12244b4ee8309d5b869d435182f5848b67177aa17a05f9306e23c10ba41675933e2cb20c66f1b009570c1',
salt: 'TnDe2LDPS7VaPD9GQWL3fhG4jk194nde',
type: 'p',
};

const walletC = {
Expand All @@ -44,7 +42,6 @@ const walletC = {
password: 'test1234',
passwordHash: '31dd4fe716e1a908f0e9612c1a0e92bfdd9f66e75ae12244b4ee8309d5b869d435182f5848b67177aa17a05f9306e23c10ba41675933e2cb20c66f1b009570c1',
salt: 'TnDe2LDPS7VaPD9GQWL3fhG4jk194nde',
type: 'p',
};

const tokenB = {
Expand All @@ -56,7 +53,6 @@ const tokenB = {
const storyOfThisSeed = `
api_key: ${apiKey}
a wallet: #${wallet.id}
type: ${wallet.type}
name: ${wallet.name}
wallet: ${wallet.wallet}
password: ${wallet.password}
Expand Down Expand Up @@ -104,7 +100,6 @@ async function seed() {
await knex('wallet')
.insert({
id: wallet.id,
type: wallet.type,
name: wallet.name,
password: wallet.passwordHash,
salt: wallet.salt,
Expand All @@ -114,7 +109,6 @@ async function seed() {
await knex('wallet')
.insert({
id: walletB.id,
type: walletB.type,
name: walletB.name,
password: walletB.passwordHash,
salt: walletB.salt,
Expand All @@ -124,7 +118,6 @@ async function seed() {
await knex('wallet')
.insert({
id: walletC.id,
type: walletC.type,
name: walletC.name,
password: walletC.passwordHash,
salt: walletC.salt,
Expand Down

0 comments on commit 5bd44ab

Please sign in to comment.