aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/BaseModel.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-04 19:32:39 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-04 19:32:39 -0400
commitb5793611d57a734d75b6a0845c441f33d144a5c0 (patch)
tree1deb4dc4cd0e1e575b1bc32ed0ae50085c7a3ecf /src/lib/models/BaseModel.ts
parent41c532de2c7786b2bb8ba5d78f092fed3cc6b63a (diff)
downloadtanzanite-b5793611d57a734d75b6a0845c441f33d144a5c0.tar.gz
tanzanite-b5793611d57a734d75b6a0845c441f33d144a5c0.tar.bz2
tanzanite-b5793611d57a734d75b6a0845c441f33d144a5c0.zip
misc
Diffstat (limited to 'src/lib/models/BaseModel.ts')
-rw-r--r--src/lib/models/BaseModel.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/models/BaseModel.ts b/src/lib/models/BaseModel.ts
index f1521dd..8ed5ed3 100644
--- a/src/lib/models/BaseModel.ts
+++ b/src/lib/models/BaseModel.ts
@@ -1,17 +1,19 @@
import { Model } from 'sequelize';
+const NEVER_USED = 'This should never be executed';
+
export abstract class BaseModel<A, B> extends Model<A, B> {
/**
* The date when the row was created.
*/
public get createdAt(): Date {
- throw new Error('This should never be executed');
+ throw new Error(NEVER_USED);
}
/**
* The date when the row was last updated.
*/
public get updatedAt(): Date {
- throw new Error('This should never be executed');
+ throw new Error(NEVER_USED);
}
}