Skip to content

Commit

Permalink
Fixing names
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Jan 20, 2025
1 parent a03f411 commit 0bf3ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/misc/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (m *Store) UnsubscribeByID(ctx context.Context, userID, listID int) error {
func (m *Store) UnsubscribeByUUID(ctx context.Context, uuid string) error {
_, err := m.db.ExecContext(ctx, `
DELETE FROM mail.subscribers
WHERE subscriber_id = $1`, uuid)
WHERE subscribe_id = $1`, uuid)
if err != nil {
return fmt.Errorf("failed to unscribe user by uuid \"%s\": %w", uuid, err)
}
Expand Down
2 changes: 1 addition & 1 deletion services/misc/webcam.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (m *Store) ListWebcams(ctx context.Context, permissions []string) ([]Webcam
var publicWebcams []Webcam
// Fetch all enabled webcams from DB
err := m.db.SelectContext(ctx, &webcams,
`SELECT camera_id, name, file, mime_type, permission
`SELECT camera_id, name, file, mime_type, permission_id
FROM misc.webcams
WHERE ENABLED;`)
if err != nil {
Expand Down

0 comments on commit 0bf3ded

Please sign in to comment.