Skip to content

Commit

Permalink
Fixed the name
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Jan 20, 2025
1 parent ec752aa commit 147ab65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (s *Store) SetEndpointInactiveByApplicationNamePwd(ctx context.Context, app
}

func (s *Store) NewEndpoint(ctx context.Context, e EndpointDB) (EndpointDB, error) {
builder := utils.PSQL().Insert("web_api.stream_endpoint").
builder := utils.PSQL().Insert("web_api.stream_endpoints").
Columns("application", "name", "pwd", "start_valid", "end_valid", "notes", "active", "blocked",
"auto_remove").
Values(e.Application, e.Name, e.Pwd, e.StartValid, e.EndValid, e.Notes, e.Active, e.Blocked, e.AutoRemove).
Expand Down Expand Up @@ -327,7 +327,7 @@ func (s *Store) EditEndpoint(ctx context.Context, e EndpointDB) error {
}

func (s *Store) DeleteEndpoint(ctx context.Context, endpointID int) error {
builder := utils.PSQL().Delete("web_api.stream_endpoint").
builder := utils.PSQL().Delete("web_api.stream_endpoints").
Where(sq.Eq{"endpoint_id": endpointID})

sql, args, err := builder.ToSql()
Expand Down

0 comments on commit 147ab65

Please sign in to comment.