diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 725b4ba..9cf9278 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -116,9 +116,9 @@ jobs: bun build index.ts --outdir ./out --target bun if [ "${{ env.ENVIRONMENT }}" = "dev" ]; then - pnpm run start-pm2-dev + pm2 start pm2.dev.config.js else - pnpm run start-pm2-prod + pm2 start pm2.prod.config.js fi ansible-playbook /home/${{ env.SERVER_USER }}/ansible/set_nginx_conf.ansible.yml -e "ansible_become_pass=${{ env.SERVER_PASSWORD }} env_type=${{ env.ENVIRONMENT }} project_name=${{ env.PROJECT_NAME }} project_type=${{ env.PROJECT_TYPE }} app_port=${{ env.APP_PORT }} working_directory=${{ env.WORKING_DIRECTORY }} server_name=${{ env.DOMAIN_NAME }} enable_rate_limiting=${{env.ENABLE_RATE_LIMITING}} rate_burst=${{env.RATE_BURST}} enable_cache=${{env.ENABLE_CACHE}} enable_cache_control=${{env.ENABLE_CACHE_CONTROL}}" diff --git a/backend/pm2.config.prod.js b/backend/pm2.prod.config.js similarity index 100% rename from backend/pm2.config.prod.js rename to backend/pm2.prod.config.js diff --git a/frontend/app/livechat/[id]/page.tsx b/frontend/app/livechat/[id]/page.tsx index 4378b89..c4af5c9 100644 --- a/frontend/app/livechat/[id]/page.tsx +++ b/frontend/app/livechat/[id]/page.tsx @@ -2,7 +2,6 @@ import prisma from '@/PrismaClientSingleton'; import { auth } from '@/auth'; import InfiniteMessageList from '@/components/Infinite-message-list'; - import { QueryParams } from '@/types'; import { redirect } from 'next/navigation'; import React from 'react'; diff --git a/frontend/components/Infinite-message-list.tsx b/frontend/components/Infinite-message-list.tsx index cba520a..1bac666 100644 --- a/frontend/components/Infinite-message-list.tsx +++ b/frontend/components/Infinite-message-list.tsx @@ -56,7 +56,6 @@ const InfiniteMessageList: React.FC = ({ const mergeMessages = useCallback( (incomingMessages: ExtentedMessage[]) => { - console.log(incomingMessages); setLiveMessages((prevMessages) => { // Create a map from existing messages for easy lookup const messagesById = new Map(prevMessages.map((msg) => [msg.id, msg])); @@ -143,7 +142,10 @@ const InfiniteMessageList: React.FC = ({ ); const filteredMediumPriorityMessages = useMemo( - () => liveMessages.filter((msg) => msg.upVotes >= PRIORITY_ZER0 && msg.upVotes <= PRIORITY_HIGH), + () => + liveMessages.filter( + (msg) => msg.upVotes >= PRIORITY_ZER0 && msg.upVotes <= PRIORITY_HIGH, + ), [liveMessages], ); diff --git a/frontend/types.ts b/frontend/types.ts index c880188..087d9b4 100644 --- a/frontend/types.ts +++ b/frontend/types.ts @@ -1,7 +1,6 @@ -export const PRIORITY_ZER0 = 10 +export const PRIORITY_ZER0 = 10; export const PRIORITY_HIGH = 20; - export enum TabType { md = 'Most downvotes', mu = 'Most upvotes',