Skip to content

Commit e07cabd

Browse files
committed
fix findById return type, add npm version badge to readme
1 parent 046b5b1 commit e07cabd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# active-record-js
22

33
[![Build Status](https://travis-ci.com/matthewwolfe/active-record-js.svg?branch=master)](https://travis-ci.com/matthewwolfe/active-record-js)
4+
[![npm version](https://badge.fury.io/js/active-record-js.svg)](https://badge.fury.io/js/active-record-js)
45

56
A Node.JS Active Record implementation, heavily influenced by Laravel's eloquent.
67

src/model/Model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class Model implements HasAttributes, HasRelationships, HasTimestamps, HidesAttr
113113
return false;
114114
}
115115

116-
public static async findById(id: number): Promise<Model>
116+
public static async findById(id: number): Promise<any>
117117
{
118118
return new this().newModelQuery().setIsFirst(true).where('id', '=', id).get();
119119
}

0 commit comments

Comments
 (0)