Skip to content

Commit

Permalink
EntityModelMacro fix for generic-typed entities (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazaiMazai authored Aug 14, 2024
1 parent c6cfb29 commit a820c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftletModelMacros/EntityModelMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ extension VariableDeclSyntax {
try VariableDeclSyntax(
"""
static let patch: MergeStrategy<Self> = {
static var patch: MergeStrategy<Self> {
MergeStrategy(
\(raw: attributes
.map { ".patch(\\.\($0.propertyName))"}
.joined(separator: ",\n")
)
)
}()
}
"""
)
}
Expand Down

0 comments on commit a820c3e

Please sign in to comment.