functions/scheduled.js
Function updateSeatedUsersCountInAuditorium
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateSeatedUsersCountInAuditorium = async () => {
await removeDanglingSeatedUsers();
const firestore = admin.firestore();
let updateOccupiedPromises = [{ batch: firestore.batch(), updatesCount: 0 }];
- Create a ticketCreate a ticket
Function removeDanglingSeatedUsers
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const removeDanglingSeatedUsers = async () => {
const firestore = admin.firestore();
const expiredSittingTimeMs = Date.now() - USER_INACTIVE_THRESHOLD;
- Create a ticketCreate a ticket
File scheduled.js
has 269 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const admin = require("firebase-admin");
const functions = require("firebase-functions");
const {
- Create a ticketCreate a ticket
Function updateUsersLocations
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.onRun(async () => {
await updateSeatedUsersCountInAuditorium();
const venuesPromise = admin
.firestore()
- Create a ticketCreate a ticket