-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #490 from connect-foundation/Develop
PR Develop to master : releaseCode:: End game
- Loading branch information
Showing
329 changed files
with
3,899 additions
and
3,983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
const Adjectives = [ | ||
"춤추는", | ||
"멋있는", | ||
"차가운", | ||
"뜨거운", | ||
"호기심이 많은", | ||
"귀여운", | ||
"울부짖는", | ||
"궁금한게 많은", | ||
"노래하는", | ||
"랩하는", | ||
"화사한", | ||
"맵시있는", | ||
"요리하는", | ||
"재미있는", | ||
"큰 눈의", | ||
"착한", | ||
"정직한", | ||
"조용한", | ||
"즐거운", | ||
"졸고있는", | ||
"기쁜", | ||
"벅찬", | ||
"포근한", | ||
"흐뭇한", | ||
"상쾌한", | ||
"시원한", | ||
"반가운", | ||
"후련한", | ||
"살맛 나는", | ||
"신바람 나는", | ||
"아늑한", | ||
"흥분되는", | ||
"온화한", | ||
"느긋한", | ||
"끝내주는", | ||
"괜찮은", | ||
"쌈박한", | ||
"정다운", | ||
"그리운", | ||
"자유로운", | ||
"따사로운", | ||
"감미로운", | ||
"황홀한", | ||
"상큼한", | ||
"개념있는", | ||
"지성적인", | ||
"자상한", | ||
"아리따운", | ||
"여유있는", | ||
"감정이 풍부한", | ||
"활기찬", | ||
"힘찬", | ||
"생생한", | ||
"의기 양양한", | ||
"든든한", | ||
"격렬한", | ||
"당당한", | ||
"팔팔한", | ||
"엄청난", | ||
"자신만만한", | ||
"패기만만한", | ||
"충만한", | ||
]; | ||
|
||
export default Adjectives; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import faker from "faker"; | ||
import Adjectives from "./Adjective.js"; | ||
import Animals from "./Animals.js"; | ||
|
||
function getRandomGuestName() { | ||
const adjective = faker.random.arrayElement(Adjectives); | ||
const animal = faker.random.arrayElement(Animals); | ||
|
||
return `${adjective} ${animal}`; | ||
} | ||
|
||
export default getRandomGuestName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import getLogger from "../libs/logger.js"; | ||
|
||
const logger = getLogger("mySQL_Query"); | ||
|
||
export default logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import Sequelize from "sequelize"; | ||
import models from "../models"; | ||
|
||
const Sequelize = require("sequelize"); | ||
|
||
const Op = Sequelize.Op; | ||
|
||
export async function getCandidatesByPollId(pollIdList) { | ||
const result = await models.Candidate.findAll({ | ||
return models.Candidate.findAll({ | ||
where: { | ||
PollId: { | ||
[Op.or]: pollIdList, | ||
}, | ||
}, | ||
}); | ||
|
||
return result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import models from "../models"; | ||
|
||
async function findHostByAuthId(oAuthid) { | ||
const host = await models.Host.findOne({where: {oauthId: oAuthid}}); | ||
const result = host ? host.dataValues : false; | ||
// todo: 더 좋은 이름 | ||
export async function findHostByAuthId(oauthId) { | ||
const host = await models.Host.findOne({where: {oauthId}}); | ||
|
||
return result; | ||
return host ? host.dataValues : false; | ||
} | ||
|
||
async function createHost(oAuthid, name, image, email) { | ||
export async function createHost(oauthId, name, image, email) { | ||
const host = await models.Host.create({ | ||
oauthId: oAuthid, | ||
oauthId, | ||
name, | ||
email, | ||
image, | ||
emailFeedBack: 0, | ||
emailFeedBack: false, | ||
}); | ||
const result = host ? host.dataValues : false; | ||
|
||
return result; | ||
return host ? host.dataValues : false; | ||
} | ||
|
||
export {createHost, findHostByAuthId}; |
Oops, something went wrong.