Fixed builds
This commit is contained in:
parent
325b730942
commit
af5e5bd8f5
3 changed files with 9 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
|||
FROM node:alpine
|
||||
|
||||
ENV API_PORT=3000
|
||||
ENV ENABLE_REDIS=true
|
||||
ENV REDIS_HOST=localhost
|
||||
ENV REDIS_PORT=6379
|
||||
#ENV API_PORT
|
||||
#ENV ENABLE_REDIS
|
||||
#ENV REDIS_HOST
|
||||
#ENV REDIS_PORT
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"dayjs": "^1.10.7",
|
||||
"next": "^12.3.4",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"next": "^13.4.12",
|
||||
"swr": "^1.0.1",
|
||||
"redis": "^4.5.1",
|
||||
"dotenv": "^10.0.0",
|
||||
|
|
|
@ -21,7 +21,10 @@ export async function getCharacters() {
|
|||
)(weapons, await getElements(), await getItems());
|
||||
|
||||
for (let chr in characters){
|
||||
if (builds[chr])
|
||||
characters[chr].builds = builds[chr]['roles'];
|
||||
else
|
||||
characters[chr].builds = []
|
||||
for (let y in characters[chr]['ascension']) {
|
||||
for (let x in characters[chr]['ascension'][y].items) {
|
||||
if (!characters[chr]['ascension'][y]["items"][x]["amount"]) {
|
||||
|
|
Loading…
Reference in a new issue