ChemPal Documentation - v1.6.0
    Preparing search index...

    Function clearSupplierStats

    • Removes all recorded supplier stats.

      Returns Promise<void>

      Resolves once the store is empty.

      await clearSupplierStats();
      
      export async function clearSupplierStats(): Promise<void> {
      try {
      const db = await getDB();
      await db.clear(IDB_STORE.SUPPLIER_STATS);
      } catch (error) {
      logger.error('Failed to clear supplier stats from IndexedDB', { error });
      }
      }