mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 22:34:03 +00:00
fix(review): harden miniapp auth and finance flows
This commit is contained in:
@@ -232,11 +232,12 @@ export function createFinanceCommandService(repository: FinanceRepository): Fina
|
||||
|
||||
await repository.openCycle(period, currency)
|
||||
|
||||
return {
|
||||
id: '',
|
||||
period,
|
||||
currency
|
||||
const cycle = await repository.getCycleByPeriod(period)
|
||||
if (!cycle) {
|
||||
throw new Error(`Failed to load billing cycle for period ${period}`)
|
||||
}
|
||||
|
||||
return cycle
|
||||
},
|
||||
|
||||
async closeCycle(periodArg) {
|
||||
|
||||
Reference in New Issue
Block a user