From 4c9ad031a742dd24b6738c3455de20abe9d79330 Mon Sep 17 00:00:00 2001 From: Ardalan Amini Date: Thu, 15 Nov 2018 09:06:59 +0330 Subject: [PATCH] WIP --- package-lock.json | 2 +- package.json | 2 +- src/base/QueryBuilder.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5e1ca2d..8fcc338 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@foxify/odin", - "version": "0.2.1", + "version": "0.2.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e2ffab4..2d63a35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@foxify/odin", - "version": "0.2.1", + "version": "0.2.2", "description": "Active Record Model", "author": "Ardalan Amini [https://github.com/ardalanamini]", "contributors": [ diff --git a/src/base/QueryBuilder.ts b/src/base/QueryBuilder.ts index 012cebb..68a116b 100644 --- a/src/base/QueryBuilder.ts +++ b/src/base/QueryBuilder.ts @@ -142,9 +142,9 @@ class QueryBuilder extends Base { return this.query().count(callback as any) as any; } - public static all(): Promise>>; - public static all(callback: Driver.Callback>>): void; - public static all(callback?: Driver.Callback) { + public static get(): Promise>>; + public static get(callback: Driver.Callback>>): void; + public static get(callback?: Driver.Callback) { return this.query().get(callback as any) as any; }