WIP server side.

This commit is contained in:
Ahmed Bouhuolia
2020-01-22 02:09:45 +02:00
parent de905d7e7c
commit 488709088b
123 changed files with 14885 additions and 771 deletions

View File

@@ -0,0 +1,14 @@
import { Model } from 'objection';
export default class ModelBase extends Model {
static get collection() {
return Array;
}
static query(...args) {
return super.query(...args).runAfter((result) => {
return this.collection.from(result);
});
}
}