@atproto/ozone
Version:
Backend service for moderating the Bluesky network.
16 lines (14 loc) • 444 B
text/typescript
import { HOUR } from '@atproto/common'
import { BackgroundQueue, PeriodicBackgroundTask } from '../background'
import { TeamService } from '../team'
export class TeamProfileSynchronizer extends PeriodicBackgroundTask {
constructor(
backgroundQueue: BackgroundQueue,
teamService: TeamService,
interval = 24 * HOUR,
) {
super(backgroundQueue, interval, async () => {
await teamService.syncMemberProfiles()
})
}
}