fix docker build

This commit is contained in:
Mateusz Gruszczyński
2026-04-06 16:41:32 +02:00
parent 723e3441df
commit 3f130ad9ed
10 changed files with 59 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
import { Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
import type { Relation } from 'typeorm';
import { Category } from './Category.js';
import { User } from './User.js';
import { decimalTransformer } from '../utils/decimal.js';
@@ -72,8 +73,8 @@ export class RecurringExpense {
updatedAt!: Date;
@ManyToOne(() => User, { onDelete: 'CASCADE' })
user!: User;
user!: Relation<User>;
@ManyToOne(() => Category, { eager: true, onDelete: 'RESTRICT' })
category!: Category;
category!: Relation<Category>;
}