|
|
@ -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, |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|