Add S3 caching and automated tests
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2021-02-01 12:02:03 +01:00
parent fcd9acc5dc
commit 14a5913aef
4 changed files with 190 additions and 43 deletions

View File

@@ -20,14 +20,10 @@ WORKDIR /app
ENV DATABASE_URL="mysql://dummy:user@localhost:1234/db"
COPY package*.json ./
COPY prisma ./prisma/
COPY . .
RUN npm install
RUN npx prisma generate
COPY . .
RUN npm run build

View File

@@ -25,7 +25,7 @@ export class DatabaseService {
})
.then(value => this.prismaClient.seasons.findUnique({
where: {
season_id: (!seasonId ? value : seasonId)
season_id: Number((!seasonId ? value : seasonId))
}
}) as Promise<seasons>)
.then((result: SeasonInfo) => {