Skip to content

Commit 529b9e6

Browse files
lesomnusclaude
andcommitted
apps/server: two more names the generator spelled itself
OnlyID and Set<Edge>ID were written as literals rather than built from gen.Pascal, so they kept their old case while everything around them moved. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 9abfc66 commit 529b9e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/server/app/x-erase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (w *fileWork) xErase() {
5050
// finds out when they stop.
5151
w.P(" var k any")
5252
w.P(" if s.Rec != nil {")
53-
w.P(" v, err := st.Db.", name, ".Query().Where(p).OnlyID(ctx)")
53+
w.P(" v, err := st.Db.", name, ".Query().Where(p).OnlyId(ctx)")
5454
w.P(" if err != nil {")
5555
w.P(" if ", w.ent.Ident("IsNotFound"), "(err) {")
5656
// Gone already, or never there, or out of reach: one answer, and it is not

apps/server/app/x-get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (w *fileWork) xGetKey() {
7373
w.P(" }")
7474
w.P("")
7575

76-
w.P(" v, err := db.", name, ".Query().Where(p).OnlyID(ctx)")
76+
w.P(" v, err := db.", name, ".Query().Where(p).OnlyId(ctx)")
7777
w.P(" if err != nil {")
7878
w.P(" if ", w.ent.Ident("IsNotFound"), "(err) {")
7979
w.P(" return z, ", work.PkgGrpcStatus.Ident("Error"), "(", work.PkgGrpcCodes.Ident("NotFound"), ", \"", name, " not found\")")

0 commit comments

Comments
 (0)