Skip to content

Commit

Permalink
fix commas
Browse files Browse the repository at this point in the history
  • Loading branch information
zenlor committed Jan 12, 2024
1 parent c5b64be commit 0019d10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/db/callouts.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func SelectAllCallouts(ctx context.Context, gid string) ([]string, error) {

func DeleleOneCallout(ctx context.Context, c *Callout) error {
q, err := prepareStmt(
`DELETE FROM ` + calloutsTable + ` WHERE gid=? AND callout=? LIMIT 1`
`DELETE FROM ` + calloutsTable + ` WHERE gid=? AND callout=? LIMIT 1`,
)
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions internal/db/media.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (m *Media) Clone() *Media {

func InsertMedia(ctx context.Context, m *Media) error {
q, err := prepareStmt(
`INSERT OR REPLACE INTO `+mediaTable+` (gid,data,kind,description)
`INSERT OR REPLACE INTO ` + mediaTable + ` (gid,data,kind,description)
VALUES(?,?,?,?)`,
)
if err != nil {
Expand Down Expand Up @@ -65,7 +65,7 @@ func SelectOneMediaByData(ctx context.Context, m *Media) error {
func SelectAllMedia(ctx context.Context, gid string) ([]Media, error) {
var results []Media
q, err := prepareStmt(
`SELECT data,description,gid,kind FROM ` + mediaTable + ` WHERE gid=?`
`SELECT data,description,gid,kind FROM ` + mediaTable + ` WHERE gid=?`,
)
if err != nil {
return results, err
Expand Down

0 comments on commit 0019d10

Please sign in to comment.