Merged in feature/textextraction (pull request #110)

Text Extraction

* bases

* go

* splitting

* structure

* movetoasync

* movetoasync

* settinguptrigger

* reorder

* storevent

* standardisepollingvalidation

* unittests

* fixlint

* fixlint

* awscfg

* generatesample

* followthrough

* tests

* clena

* store

* externalidcleanup

* clientid

* local

* baseunittests

* putobjecttests

* tests
This commit is contained in:
Michael McGuinness
2025-04-02 18:50:03 +00:00
parent e6a4cb3990
commit 81e7223560
226 changed files with 17283 additions and 2744 deletions
+5 -6
View File
@@ -16,8 +16,8 @@ func (s *Controllers) CreateClient(ctx echo.Context) error {
}
_, err := s.svc.Client.Create(ctx.Request().Context(), client.CreateParams{
Name: req.Name,
ExternalId: req.Id,
Name: req.Name,
ID: req.Id,
})
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Unable to create client: %s", err))
@@ -29,14 +29,13 @@ func (s *Controllers) CreateClient(ctx echo.Context) error {
}
func (s *Controllers) GetClient(ctx echo.Context, id ClientID) error {
client, err := s.svc.Client.GetByExternalId(ctx.Request().Context(), id)
client, err := s.svc.Client.Get(ctx.Request().Context(), id)
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Unable to get client: %s", err))
}
return ctx.JSON(http.StatusOK, DocClient{
Id: client.ExternalID,
Uid: client.ID,
Id: client.ID,
Name: client.Name,
CanSync: client.CanSync,
})
@@ -48,7 +47,7 @@ func (s *Controllers) UpdateClient(ctx echo.Context, id ClientID) error {
return echo.NewHTTPError(http.StatusBadRequest, err)
}
err := s.svc.Client.UpdateByExternalId(ctx.Request().Context(), id, &client.Update{
err := s.svc.Client.Update(ctx.Request().Context(), id, &client.Update{
Name: req.Name,
CanSync: req.CanSync,
})