Просмотр исходного кода

V2.1 Controller

v2_uploadImages
Mike Carman 2 недель назад
Родитель
Сommit
1ac2e40102
3 измененных файлов: 9 добавлений и 21 удалений
  1. Двоичные данные
      .swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +6
    -20
      .swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  3. +3
    -1
      Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift

Двоичные данные
.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate Просмотреть файл


+ 6
- 20
.swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist Просмотреть файл

@@ -296,14 +296,14 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "4BA9FF0F-7885-427C-BFB1-D1967AA88E83" uuid = "4BA9FF0F-7885-427C-BFB1-D1967AA88E83"
shouldBeEnabled = "Yes"
shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift" filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "671"
endingLineNumber = "671"
startingLineNumber = "673"
endingLineNumber = "673"
landmarkName = "create(req:)" landmarkName = "create(req:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -312,7 +312,7 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA" uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA"
shouldBeEnabled = "Yes"
shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift" filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"
@@ -352,25 +352,11 @@
endingLineNumber = "670"> endingLineNumber = "670">
</Location> </Location>
<Location <Location
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA - 273c71d5945c5dd6"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "(6) await resume partial function for App.FuelEntryV2ControllerV2_1.create(req: Vapor.Request) async throws -&gt; Vapor.Response"
moduleName = "App"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/mcarman/Projects/Vapor/fueling_v1/Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "670"
endingLineNumber = "670">
</Location>
<Location
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA - e15abd85ddbd5cbe"
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA - 59be19ac25be1c89"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
symbolName = "(10) suspend resume partial function for App.FuelEntryV2ControllerV2_1.create(req: Vapor.Request) async throws -&gt; Vapor.Response"
symbolName = "closure #1 (App.FuelEntry) throws -&gt; App.FuelEntry.V2_1_Output in App.FuelEntryV2ControllerV2_1.create(req: Vapor.Request) async throws -&gt; Vapor.Response"
moduleName = "App" moduleName = "App"
usesParentBreakpointCondition = "Yes" usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/mcarman/Projects/Vapor/fueling_v1/Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift" urlString = "file:///Users/mcarman/Projects/Vapor/fueling_v1/Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"


+ 3
- 1
Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift Просмотреть файл

@@ -667,7 +667,9 @@ struct FuelEntryV2ControllerV2_1: RouteCollection {
} }
// try await fuelEntry.create(on: req.db) // try await fuelEntry.create(on: req.db)
let response = try await results.encodeResponse(for: req)
let response = try await results.map{
try FuelEntry.V2_1_Output.init(from: $0)
}.encodeResponse(for: req)
return response return response
} }


Загрузка…
Отмена
Сохранить