double-sided quotation + fixed tests

This commit is contained in:
Stephan D
2025-12-09 17:45:29 +01:00
parent ce59cb1b26
commit 32653e11fc
34 changed files with 358 additions and 86 deletions

View File

@@ -36,8 +36,8 @@ func NewQuotes(logger mlogger.Logger, repo repository.Repository) (*Quotes, erro
Keys: []ri.Key{{Field: "organizationRef", Sort: ri.Asc}},
},
{
Keys: []ri.Key{{Field: "expiresAt", Sort: ri.Asc}},
ExpireAfterSeconds: 0,
Keys: []ri.Key{{Field: "expiresAt", Sort: ri.Asc}},
TTL: int32Ptr(0),
},
}
@@ -111,3 +111,7 @@ func (q *Quotes) GetByRef(ctx context.Context, orgRef primitive.ObjectID, quoteR
}
var _ storage.QuotesStore = (*Quotes)(nil)
func int32Ptr(v int32) *int32 {
return &v
}