feat: Adds createFromCSV to create rooms in the database, properly handling delegating airflow to another room.
Some checks failed
CI / Linux Tests (push) Failing after 5m29s
Some checks failed
CI / Linux Tests (push) Failing after 5m29s
This commit is contained in:
@@ -293,7 +293,7 @@ extension SiteRoute.View.ProjectRoute.RoomRoute {
|
||||
case .csv(let csv):
|
||||
return await roomsView(on: request, projectID: projectID) {
|
||||
let rooms = try await csvParser.parseRooms(csv)
|
||||
_ = try await database.rooms.createMany(projectID, rooms)
|
||||
_ = try await database.rooms.createFromCSV(projectID, rooms)
|
||||
}
|
||||
// return EmptyHTML()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user