server-ts: Fix most type errors in becca

This commit is contained in:
Elian Doran
2024-02-17 11:39:29 +02:00
parent 26388ad3b6
commit 2f96dc2d9d
6 changed files with 41 additions and 18 deletions

View File

@@ -88,11 +88,17 @@ abstract class AbstractBeccaEntity<T extends AbstractBeccaEntity<T>> {
return this.getPojo();
}
abstract hasStringContent(): boolean;
hasStringContent(): boolean {
// FIXME: Not sure why some entities don't implement it.
return true;
}
abstract getPojo(): {};
abstract get isDeleted(): boolean;
get isDeleted(): boolean {
// FIXME: Not sure why some entities don't implement it.
return false;
}
/**
* Saves entity - executes SQL, but doesn't commit the transaction on its own