Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ server {
proxy_cache_bypass $http_upgrade;
}

location /threads/ {
location /threads {
limit_req zone=threads_limit burst=20 nodelay;
proxy_pass http://localhost:5000;
proxy_pass http://localhost:5000$request_uri;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand Down
4 changes: 3 additions & 1 deletion src/Applications/use_case/_test/PutLikeUseCase.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const pool = require('../../../Infrastructures/database/postgres/pool');
const CommentsTableTestHelper = require('../../../../tests/CommentsTableTestHelper');
const LikesTableTestHelper = require('../../../../tests/LikesTableTestHelper');
const ThreadsTableTestHelper = require('../../../../tests/ThreadsTableTestHelper');
Expand All @@ -6,7 +7,6 @@ const CommentRepository = require('../../../Domains/comments/CommentRepository')
const NewLike = require('../../../Domains/likes/entities/NewLike');
const LikeRepository = require('../../../Domains/likes/LikeRepository');
const ThreadRepository = require('../../../Domains/threads/ThreadRepository');

const PutLikeUseCase = require('../PutLikeUseCase');

describe('PutLikeUseCase',()=>{
Expand All @@ -21,6 +21,8 @@ describe('PutLikeUseCase',()=>{
await ThreadsTableTestHelper.cleanTable();
await CommentsTableTestHelper.cleanTable();
await LikesTableTestHelper.cleanTable();

await pool.end();
});

it('should orchestrating the add like action correctly',async()=>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ describe('LikeRepositoryPostgres',()=>{
await UsersTableTestHelper.cleanTable();
await ThreadsTableTestHelper.cleanTable();
await CommentsTableTestHelper.cleanTable();

await pool.end();
});

describe('add like function', ()=>{
Expand Down