Skip to content

Conversation

@DanielFortuyn
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds server-side exports for database collection constants to make them available for server-side usage.

  • Exports collection constants from the common specs module
  • Adds 16 different collection constants including user, package, partner, booking, and other database collections

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

export { FirebaseService, createFirebaseService } from './services/firebase';
export { FirebaseService, createFirebaseService } from './services/firebase';

export { USER_COLLECTION, PACKAGE_COLLECTION, PARTNER_COLLECTION, BOOKING_COLLECTION, ROLE_COLLECTION, PERMISSION_COLLECTION, TRAFFIC_POLICY_COLLECTION, PROFILE_COLLECTION, PROMO_CODE_COLLECTION, COUNTRY_COLLECTION, ESIM_COLLECTION, PAYMENT_COLLECTION, PRICE_LIST_COLLECTION, MESSAGE_COLLECTION, CURRENCY_COLLECTION, API_LOG_COLLECTION } from './specs/common';
Copy link

Copilot AI Sep 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] This single export line contains 16 collection constants, making it difficult to read and maintain. Consider splitting this into multiple lines or grouping related collections together for better readability.

Suggested change
export { USER_COLLECTION, PACKAGE_COLLECTION, PARTNER_COLLECTION, BOOKING_COLLECTION, ROLE_COLLECTION, PERMISSION_COLLECTION, TRAFFIC_POLICY_COLLECTION, PROFILE_COLLECTION, PROMO_CODE_COLLECTION, COUNTRY_COLLECTION, ESIM_COLLECTION, PAYMENT_COLLECTION, PRICE_LIST_COLLECTION, MESSAGE_COLLECTION, CURRENCY_COLLECTION, API_LOG_COLLECTION } from './specs/common';
// User and profile related collections
export { USER_COLLECTION, PROFILE_COLLECTION, ROLE_COLLECTION, PERMISSION_COLLECTION } from './specs/common';
// Partner and package related collections
export { PARTNER_COLLECTION, PACKAGE_COLLECTION, PRICE_LIST_COLLECTION, TRAFFIC_POLICY_COLLECTION } from './specs/common';
// Booking and promo code related collections
export { BOOKING_COLLECTION, PROMO_CODE_COLLECTION } from './specs/common';
// Country, currency, payment, esim, message, api log collections
export { COUNTRY_COLLECTION, CURRENCY_COLLECTION, PAYMENT_COLLECTION, ESIM_COLLECTION, MESSAGE_COLLECTION, API_LOG_COLLECTION } from './specs/common';

Copilot uses AI. Check for mistakes.
@DanielFortuyn DanielFortuyn merged commit c7a4f8c into main Sep 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants