import { pikkuWireServices } from '../.pikku/pikku-types.gen.js'
import { AuditService } from './services/audit.service.js'

export const createWireServices = pikkuWireServices(async (services, wire) => {
  const userId = wire.session?.userId ?? null
  return {
    audit: new AuditService(services.kysely, userId),
  }
})
