Commit bdce0876 authored by William Naslund's avatar William Naslund

Removed null id check on model insert

parent f3b73674
......@@ -15,10 +15,6 @@ export class DBModel {
const db = this.getDB();
const tableInfo = getTableInformation(this.constructor);
if(this[] != null) {
throw new Error(`Attempt to insert a model that already has an id`);
const saveData: any = { };
for(const field in this._contents) {
saveData[field] = this._contents[field];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment