Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 26 lines 613 B view raw
1import { inject, type Dependencies } from '../../iocContainer/index.js'; 2import { getUtcDateOnlyString } from '../../utils/time.js'; 3 4class OrgCreationLogger { 5 constructor( 6 private readonly orgCreationAdapter: Dependencies['OrgCreationAdapter'], 7 ) {} 8 9 async logOrgCreated( 10 id: string, 11 name: string, 12 email: string, 13 websiteUrl: string, 14 ) { 15 await this.orgCreationAdapter.logOrgCreated( 16 id, 17 name, 18 email, 19 websiteUrl, 20 getUtcDateOnlyString(), 21 ); 22 } 23} 24 25export default inject(['OrgCreationAdapter'], OrgCreationLogger); 26export { type OrgCreationLogger };