Skip to content

Commit

Permalink
fixed issue with workflow and removed console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Singh committed Dec 30, 2023
1 parent 3fef5ea commit 4529f29
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
File renamed without changes.
1 change: 0 additions & 1 deletion frontend/app/livechat/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 4 additions & 2 deletions frontend/components/Infinite-message-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const InfiniteMessageList: React.FC<InfiniteMessageListProps> = ({

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]));
Expand Down Expand Up @@ -143,7 +142,10 @@ const InfiniteMessageList: React.FC<InfiniteMessageListProps> = ({
);

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],
);

Expand Down
3 changes: 1 addition & 2 deletions frontend/types.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 4529f29

Please sign in to comment.