mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 16:22:24 -05:00
moving stuff around, stubbing interfaces
This commit is contained in:
parent
338af00e7b
commit
9a79d176c9
11 changed files with 114 additions and 67 deletions
|
|
@ -114,7 +114,7 @@ func newPostgresService(ctx context.Context, c *config.Config, log *logrus.Entry
|
|||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
}
|
||||
if _, err := conn.Model(note).Returning("id").Insert(); err != nil {
|
||||
if _, err := conn.WithContext(ctx).Model(note).Returning("id").Insert(); err != nil {
|
||||
cancel()
|
||||
return nil, fmt.Errorf("db insert error: %s", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue