Skip to content

Commit 15f7c45

Browse files
authored
fix(readme): fixes typo in gorm example
1 parent dc513ef commit 15f7c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Example for gORM with GCP-Postgres driver:
314314
kgin.GinV1(kApp, r)
315315
r.GET("/gin/:color/*type", func(c *gin.Context) {
316316
// set the context of *gorm.DB with request's context of http Handler function before queries.
317-
pSQL_DB = pSQL_DB.WithContext(r.Context())
317+
pSQL_DB = pSQL_DB.WithContext(c.Request.Context())
318318
// Find
319319
var (
320320
people []Book

0 commit comments

Comments
 (0)