Skip to content

Commit ed1e7cc

Browse files
committed
Merge branch 'main'
2 parents 56b8df4 + 0d87667 commit ed1e7cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/constant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package config
22

3-
const Version = "3.5.3"
3+
const Version = "3.5.4"
44
const Trial = false
55
const VersionType = ""
66

provider/archive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ func (w *Website) SaveArchiveCategories(archiveId int64, categoryIds []uint) err
16351635
func (w *Website) GetArchiveRelations(archiveId int64) []*model.Archive {
16361636
var relations []*model.Archive
16371637
var relationIds []int64
1638-
w.DB.WithContext(w.Ctx()).Model(&model.ArchiveRelation{}).Group("archive_id").Where("`archive_id` = ?", archiveId).Pluck("relation_id", &relationIds)
1638+
w.DB.WithContext(w.Ctx()).Model(&model.ArchiveRelation{}).Where("`archive_id` = ?", archiveId).Pluck("relation_id", &relationIds)
16391639
if len(relationIds) > 0 {
16401640
w.DB.WithContext(w.Ctx()).Model(&model.Archive{}).Where("`id` IN (?)", relationIds).Find(&relations)
16411641
for i := range relations {

provider/timefactor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (w *Website) TimeReleaseArchives(setting *config.PluginTimeFactor) {
172172
if len(setting.CategoryIds) > 0 {
173173
db = db.Where("category_id NOT IN (?)", setting.CategoryIds)
174174
}
175-
var draft *model.ArchiveDraft
175+
var draft model.ArchiveDraft
176176
// 一次最多读取1个
177177
var maxId int64
178178
var minId int64

0 commit comments

Comments
 (0)