Skip to content

Commit

Permalink
feature:WEOS-1327
Browse files Browse the repository at this point in the history
- Merged Dev and did some changes (gormdb)
  • Loading branch information
RandyDeo committed Feb 14, 2022
1 parent ce72c24 commit e4562f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Blog"
application/x-www-form-urlencoded:
schema:
$ref: "#/components/schemas/Blog"
multipart/form-data:
schema:
$ref: "#/components/schemas/Blog"
responses:
200:
description: Update Blog
Expand Down
4 changes: 2 additions & 2 deletions end2end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ func sojournerDeletesTheTable(tableName string) error {
if err != nil {
return fmt.Errorf("unexpected error getting projection: %s", err)
}
apiProjection1 := apiProjection.(*projections.GORMProjection)
apiProjection1 := apiProjection.(*projections.GORMDB)

result := apiProjection1.DB().Migrator().DropTable(strings.Title(tableName))
if result != nil {
Expand All @@ -1139,7 +1139,7 @@ func theTableShouldBePopulatedWith(contentType string, details *godog.Table) err
if err != nil {
return fmt.Errorf("unexpected error getting projection: %s", err)
}
apiProjection1 := apiProjection.(*projections.GORMProjection)
apiProjection1 := apiProjection.(*projections.GORMDB)
result = apiProjection1.DB().Table(strings.Title(contentType)).Find(&contentEntity, "weos_ID = ?", compare["weos_id"])

if contentEntity == nil {
Expand Down

0 comments on commit e4562f8

Please sign in to comment.