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
|
FROM node:alpine
|
||||||
|
|
||||||
ENV API_PORT=3000
|
#ENV API_PORT
|
||||||
ENV ENABLE_REDIS=true
|
#ENV ENABLE_REDIS
|
||||||
ENV REDIS_HOST=localhost
|
#ENV REDIS_HOST
|
||||||
ENV REDIS_PORT=6379
|
#ENV REDIS_PORT
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "^1.10.7",
|
"dayjs": "^1.10.7",
|
||||||
"next": "^12.3.4",
|
"next": "^13.4.12",
|
||||||
"react": "^17.0.2",
|
|
||||||
"react-dom": "^17.0.2",
|
|
||||||
"swr": "^1.0.1",
|
"swr": "^1.0.1",
|
||||||
"redis": "^4.5.1",
|
"redis": "^4.5.1",
|
||||||
"dotenv": "^10.0.0",
|
"dotenv": "^10.0.0",
|
||||||
|
|
|
@ -21,7 +21,10 @@ export async function getCharacters() {
|
||||||
)(weapons, await getElements(), await getItems());
|
)(weapons, await getElements(), await getItems());
|
||||||
|
|
||||||
for (let chr in characters){
|
for (let chr in characters){
|
||||||
|
if (builds[chr])
|
||||||
characters[chr].builds = builds[chr]['roles'];
|
characters[chr].builds = builds[chr]['roles'];
|
||||||
|
else
|
||||||
|
characters[chr].builds = []
|
||||||
for (let y in characters[chr]['ascension']) {
|
for (let y in characters[chr]['ascension']) {
|
||||||
for (let x in characters[chr]['ascension'][y].items) {
|
for (let x in characters[chr]['ascension'][y].items) {
|
||||||
if (!characters[chr]['ascension'][y]["items"][x]["amount"]) {
|
if (!characters[chr]['ascension'][y]["items"][x]["amount"]) {
|
||||||
|
|
Loading…
Reference in a new issue