Skip to content

Commit 840b234

Browse files
committed
fix(gebura): correct search & flatten logic
1 parent 451c255 commit 840b234

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

app/sephirah/internal/biz/bizangela/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func NewPullSteamAppTopic(
4040
internalApp.ID = id
4141
internalApp.Source = modelgebura.AppSourceInternal
4242
internalApp.SourceAppID = strconv.FormatInt(int64(internalApp.ID), 10)
43+
internalApp.BoundInternal = id
4344
err = a.repo.UpdateApp(ctx, app, internalApp)
4445
if err != nil {
4546
return err

app/sephirah/internal/data/angela.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func (a *angelaRepo) UpdateApp( //nolint:gocognit //TODO
103103
SetSourceAppID(internal.SourceAppID).
104104
SetName(internal.Name).
105105
SetType(converter.ToEntAppType(internal.Type)).
106+
SetBindInternalID(internal.BoundInternal).
106107
Exec(ctx)
107108
if err != nil {
108109
return err

app/sephirah/internal/model/modelgebura/modelgebura.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ func mergeApp(base *App, merged *App) *App {
9191
if len(base.Name) == 0 {
9292
base.Name = merged.Name
9393
}
94+
if base.Type == AppTypeUnspecified {
95+
base.Type = merged.Type
96+
}
9497
if len(base.ShortDescription) == 0 {
9598
base.ShortDescription = merged.ShortDescription
9699
}

0 commit comments

Comments
 (0)