File tree Expand file tree Collapse file tree
backend/internal/billing/repo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
1212 "github.com/chaitin/MonkeyCode/backend/db/user"
1313 "github.com/chaitin/MonkeyCode/backend/domain"
1414 "github.com/chaitin/MonkeyCode/backend/pkg/cvt"
15+ "github.com/chaitin/MonkeyCode/backend/pkg/entx"
1516)
1617
1718type BillingRepo struct {
@@ -54,6 +55,7 @@ func (b *BillingRepo) CompletionInfo(ctx context.Context, id string) (*domain.Co
5455
5556// ListChatRecord implements domain.BillingRepo.
5657func (b * BillingRepo ) ListChatRecord (ctx context.Context , req domain.ListRecordReq ) (* domain.ListChatRecordResp , error ) {
58+ ctx = entx .SkipSoftDelete (ctx )
5759 q := b .db .Task .Query ().
5860 WithUser ().
5961 WithModel ().
@@ -100,6 +102,7 @@ func filterTask(q *db.TaskQuery, req domain.ListRecordReq) {
100102
101103// ListCompletionRecord implements domain.BillingRepo.
102104func (b * BillingRepo ) ListCompletionRecord (ctx context.Context , req domain.ListRecordReq ) (* domain.ListCompletionRecordResp , error ) {
105+ ctx = entx .SkipSoftDelete (ctx )
103106 q := b .db .Task .Query ().
104107 WithUser ().
105108 WithModel ().
You can’t perform that action at this time.
0 commit comments