Skip to content

Commit

Permalink
removed Answers.js and it's references
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyroy committed Mar 27, 2022
1 parent eaf26f0 commit 532eeea
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
14 changes: 0 additions & 14 deletions script/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const {
db,
models: { User, Alphabet, TargetWord, WordleGame, AcceptedGuess, AcceptedWord }
} = require('../server/db')
const answerBank = require('./answerBank')

/**
* seed - this function clears the database, updates tables to
Expand Down Expand Up @@ -126,19 +125,6 @@ async function seed() {
textUrl: letterTextUrl[i]
})
}

const answers = await Promise.all([
answerBank.map((answer) => {
let chars = answer.split('');
Answer.create({
word: answer,
firstLetter: chars[0],
secondLetter: chars[1],
thirdLetter: chars[2],
fourthLetter: chars[3],
fifthLetter: chars[4],
})
})])

const acceptedWord = [
'aahed',
Expand Down
1 change: 0 additions & 1 deletion server/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const AcceptedGuess = require('./models/AcceptedGuess')
const WordleGame = require('./models/WordleGame')
const AcceptedWord = require('./models/AcceptedWord')

const Answer = require('./models/Answer')

//associations could go here!
//user has many wordleGame, wordleGame belongs to 1 user
Expand Down
48 changes: 0 additions & 48 deletions server/db/models/Answer.js

This file was deleted.

0 comments on commit 532eeea

Please sign in to comment.