mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 03:54:47 +00:00
Introducing: Users service (#17)
Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
@@ -32,7 +32,7 @@ type Post struct {
|
||||
|
||||
type Posts struct {
|
||||
Tags tags.TagsService
|
||||
db model.DB
|
||||
db model.Table
|
||||
}
|
||||
|
||||
func NewPosts(tagsService tags.TagsService) *Posts {
|
||||
@@ -41,11 +41,11 @@ func NewPosts(tagsService tags.TagsService) *Posts {
|
||||
|
||||
return &Posts{
|
||||
Tags: tagsService,
|
||||
db: model.NewDB(
|
||||
db: model.NewTable(
|
||||
store.DefaultStore,
|
||||
"posts",
|
||||
model.Indexes(model.ByEquality("slug"), createdIndex),
|
||||
&model.DBOptions{
|
||||
&model.TableOptions{
|
||||
Debug: false,
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user