migrate to 1.25.3

This commit is contained in:
2025-10-28 10:16:56 +02:00
parent a41ccec4a0
commit 54aaa80f23
6 changed files with 67 additions and 66 deletions

View File

@@ -70,6 +70,7 @@ func (f *ExternalSources) GetTypeIds(entries []model.ExternalSources, db *sqlx.D
var typeIds []int
ids := thither.FieldValueToStrSlice(entries, "TypeId")
query := fmt.Sprintf("SELECT type_id FROM %s WHERE `type` = '%s' AND type_id IN (%s) LIMIT %d", constant.ExternalSourcesTable, entries[0].Type, strings.Join(ids, ","), len(ids))
fmt.Println(query)
err := db.Select(&typeIds, query)
if err != nil {
slog.Error("getting type ids", "err", err)