diff --git a/lib/DatabaseModel.ts b/lib/DatabaseModel.ts index 3383ee4..9f29462 100644 --- a/lib/DatabaseModel.ts +++ b/lib/DatabaseModel.ts @@ -24,8 +24,13 @@ export abstract class DatabaseModel { this.id = id; } - public abstract get(key: string): string|number|boolean; - public abstract set(key: string, value: string|number|boolean): void; + public get (key: string): string|number|boolean { + return this.data[key]; + } + + public set (key: string, value: string|number|boolean): void { + this.data[key] = value; + } public abstract async read(): Promise; public abstract async write(): Promise;