@webshop/root - v1.0.0
    Preparing search index...

    Service for managing games Handles all database queries related to games

    Index

    Constructors

    Properties

    databaseService: DatabaseService
    priceService: PriceService

    Methods

    • Enriches a game with price information from the price service

      Parameters

      Returns Promise<IGame>

      Promise with price data attached

    • Returns Promise<IGame[]>

      Promise IGame[]

    • Fetches a single game from the database by SKU and enriches it with price data

      Parameters

      • sku: string

        string

      Returns Promise<IGame | null>

      Promise<IGame | null>

    • Parameters

      • value: string | null | undefined

        string | null | undefined

      Returns boolean

      false if not a string

    • Returns Promise<IGame[]>

      Promise IGame[]