ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Function addHistory

    • Add a product to the history of products that were clicked on.

      Parameters

      Returns Promise<void>

      export async function addHistory(history: HistoryEntry): Promise<void> {
      if (!history) {
      return;
      }
      history.timestamp = Date.now();
      if (history.type === "search") {
      await addSearchHistoryEntry(history);
      }
      }