checkpoint: goals feature, wallet balance, and goals/wallet detail UI
- Add goals feature (models, migrations, API, web pages) - Add reserved/centralized wallet balance service - Add wallet detail page and overview components - Add new UI components (progress, multi-select, FAB) - Remove stray empty -H/-d files from working tree
This commit is contained in:
5
apps/api/dist/wallets/wallets.service.js
vendored
Normal file → Executable file
5
apps/api/dist/wallets/wallets.service.js
vendored
Normal file → Executable file
@@ -23,6 +23,11 @@ let WalletsService = class WalletsService {
|
||||
orderBy: { createdAt: 'asc' },
|
||||
});
|
||||
}
|
||||
getOne(userId, id) {
|
||||
return this.prisma.wallet.findFirst({
|
||||
where: { id, userId, deletedAt: null },
|
||||
});
|
||||
}
|
||||
create(userId, input) {
|
||||
const kind = input.kind ?? 'money';
|
||||
return this.prisma.wallet.create({
|
||||
|
||||
Reference in New Issue
Block a user