Browse Source

FIX | fixed chats if order is taken

merge-requests/207/head
Vitalik 2 years ago
parent
commit
53717ed87d
  1. 3
      deploy/dev.sh
  2. 4
      src/domain/chats/services/chats-fixed.service.ts

3
deploy/dev.sh

@ -4,5 +4,6 @@ ssh root@185.69.154.136 "
git pull origin stage && git pull origin stage &&
npm run build && npm run build &&
docker-compose -f docker-compose.stage.yml up -d && docker-compose -f docker-compose.stage.yml up -d &&
docker-compose restart docker restart api-rws_taskme-api_1
" "

4
src/domain/chats/services/chats-fixed.service.ts

@ -40,7 +40,9 @@ export class ChatsFixedService implements Chats.IChatsFixedService {
if (orderTaken) { if (orderTaken) {
for await (const [index, item] of itemsToRecalcOrder.entries()) { for await (const [index, item] of itemsToRecalcOrder.entries()) {
await this.chatsFixedRepository.update(item.id, { order: order + index + 1 }) await this.chatsFixedRepository.update(item.id, {
order: Number(order) + Number(index) + 1,
})
} }
} }
} }

Loading…
Cancel
Save