Make sure AccessToken extends from PersistedModel
This commit is contained in:
parent
e35bc9ed5f
commit
c3a33df0ce
|
@ -2,8 +2,7 @@
|
||||||
* Module Dependencies.
|
* Module Dependencies.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Model = require('../loopback').Model
|
var loopback = require('../loopback')
|
||||||
, loopback = require('../loopback')
|
|
||||||
, assert = require('assert')
|
, assert = require('assert')
|
||||||
, crypto = require('crypto')
|
, crypto = require('crypto')
|
||||||
, uid = require('uid2')
|
, uid = require('uid2')
|
||||||
|
@ -37,10 +36,11 @@ var properties = {
|
||||||
* @property {Date} created When the token was created
|
* @property {Date} created When the token was created
|
||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
* @inherits {Model}
|
* @inherits {PersistedModel}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var AccessToken = module.exports = Model.extend('AccessToken', properties, {
|
var AccessToken = module.exports =
|
||||||
|
loopback.PersistedModel.extend('AccessToken', properties, {
|
||||||
acls: [
|
acls: [
|
||||||
{
|
{
|
||||||
principalType: ACL.ROLE,
|
principalType: ACL.ROLE,
|
||||||
|
|
Loading…
Reference in New Issue