housekeeping
This commit is contained in:
		| @ -132,6 +132,9 @@ const isFromWhitelistedDomain = (fqn: string): boolean => { | |||||||
|     if (envConfig.whitelistedDomains.includes(domain)) { |     if (envConfig.whitelistedDomains.includes(domain)) { | ||||||
|       return true; |       return true; | ||||||
|     } |     } | ||||||
|  |     console.log( | ||||||
|  |       `Rejecting prompt request from un-whitelisted domain: ${domain}` | ||||||
|  |     ); | ||||||
|     return false; |     return false; | ||||||
|   } catch (error: any) { |   } catch (error: any) { | ||||||
|     console.error(`Error with domain check: ${error.message}`); |     console.error(`Error with domain check: ${error.message}`); | ||||||
| @ -280,4 +283,7 @@ console.log( | |||||||
|     envConfig.fetchInterval / 1000 |     envConfig.fetchInterval / 1000 | ||||||
|   } seconds.` |   } seconds.` | ||||||
| ); | ); | ||||||
|  | console.log( | ||||||
|  |   `Accepting prompts from domains: ${envConfig.whitelistedDomains.join(", ")}` | ||||||
|  | ); | ||||||
| await beginFetchCycle(); | await beginFetchCycle(); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user