scripts/migration/v0.0.2__migrate-venue-chats.ts
Function cleanupThreads
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const cleanupThreads = async (
firestore: FirebaseFirestore.Firestore,
chatsRef: CollectionReference
) => {
const { docs: threadMessages } = await chatsRef.orderBy("threadId").get();
- Create a ticketCreate a ticket
Function updateChatMessagesCounter
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateChatMessagesCounter = async (
firestore: FirebaseFirestore.Firestore,
venueRef: DocumentReference
) => {
const batch = firestore.batch();
- Create a ticketCreate a ticket