Fix FinTS transaction deduplication
This commit is contained in:
@@ -67,7 +67,7 @@ export const list = query({
|
||||
if (basis === "effective") {
|
||||
q = ctx.db
|
||||
.query("transactions")
|
||||
.withIndex("by_user_effmonth", (iq) => {
|
||||
.withIndex("by_user_effmonth_booking", (iq) => {
|
||||
if (fromMonth && toMonth) {
|
||||
return iq.eq("userId", userId).gte("effectiveMonth", fromMonth).lte("effectiveMonth", toMonth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user