Skip to content

Commit

Permalink
fix: trivials bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
HungLV46 committed Aug 17, 2024
1 parent 63468a0 commit baddef4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ services:
ports:
- '3000:3000'
environment:
HOST: 0.0.0.0
PORT: 3000
REDIS_URL: redis://redis:6379/1
DATABASE_URL: 'postgresql://postgres:password@postgres:5432/ip-scan?schema=public'
ELASTICSEARCH_URL: http://elasticsearch:9200
Expand Down
2 changes: 1 addition & 1 deletion src/apis/routes/users/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { prisma } from '#common/db';
import Joi from 'joi';
import { Prisma } from '@prisma/client';

export const createUserionRoute: Hapi.ServerRoute = {
export const createUserRoute: Hapi.ServerRoute = {
method: 'POST',
path: '/users',
options: {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/routes/users/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const updateUserRoute: Hapi.ServerRoute = {
path: '/users/{id}',
options: {
description: 'Update user by its ID',
notes: 'Update user, its attributes and collections',
notes: 'Update user, its attributes',
tags: ['api', 'user', 'update'],
plugins: { 'hapi-swagger': {} },
validate: {
Expand Down
12 changes: 6 additions & 6 deletions src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export const config = {
chainId: Number(process.env.CHAIN_ID || 1),

// AWS
s3Region: String(process.env.S3_REGION || ''),
s3AccessKeyId: String(process.env.S3_ACCESS_KEY_ID || ''),
s3SecretAccessKey: String(process.env.S3_ACCESS_KEY || ''),
s3DomainName: String(process.env.S3_DOMAIN_NAME || ''),
s3BucketName: String(process.env.S3_BUCKET_NAME || ''),
s3BucketFolder: String(process.env.S3_BUCKET_FOLDER || ''),
s3Region: String(process.env.S3_REGION || 'region'),
s3AccessKeyId: String(process.env.S3_ACCESS_KEY_ID || 'id'),
s3SecretAccessKey: String(process.env.S3_ACCESS_KEY || 'secret'),
s3DomainName: String(process.env.S3_DOMAIN_NAME || 'name'),
s3BucketName: String(process.env.S3_BUCKET_NAME || 'name'),
s3BucketFolder: String(process.env.S3_BUCKET_FOLDER || 'folder'),
};

0 comments on commit baddef4

Please sign in to comment.