This repository has been archived on 2026-02-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
swift-duct-calc/Sources/ProjectClient/Internal/ComponentLoss+createDefaults.swift
Michael Housh 18a5ef06d3
All checks were successful
CI / Linux Tests (push) Successful in 5m24s
feat: Rename items in database client for consistency.
2026-01-29 15:47:24 -05:00

13 lines
296 B
Swift

import DatabaseClient
import ManualDCore
extension DatabaseClient.ComponentLosses {
func createDefaults(projectID: Project.ID) async throws {
let defaults = ComponentPressureLoss.Create.default(projectID: projectID)
for loss in defaults {
_ = try await create(loss)
}
}
}