I have a code as follows:
public async cleanUpCachedData(){ const queries = await this._searchesDatastore.getArchivedSearches(); queries.forEach