Skip to content

Commit

Permalink
fix unassigned news.Cache resulting in nil pointer exeption
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Aug 9, 2023
1 parent dcecea9 commit f0b155b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

APP_NAME=swis-api
APP_ROOT=/opt/${APP_NAME}
APP_VERSION=5.5.9
APP_VERSION=5.5.10


#
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @title swis-api (swapi) v5
// @version 5.5.9
// @version 5.5.10
// @description sakalWeb Information System v5 RESTful API documentation
// @termsOfService http://swagger.io/terms/

Expand Down Expand Up @@ -157,7 +157,7 @@ func main() {

// news CRUD
newsRouter := router.Group("/news")
//news.Cache = &config.Cache{}
news.Cache = &config.Cache{}
news.Routes(newsRouter)

// projects CRUD
Expand Down

0 comments on commit f0b155b

Please sign in to comment.