File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ function currentLocale(){
11
11
12
12
var prototype_mongoose = function ( ) {
13
13
var ma = mongoose . Schema . prototype . add ;
14
- if ( mongoose . Schema . protection . localized ) return ;
15
- mongoose . Schema . protection . localized = ( ) => true ;
14
+ if ( mongoose . Schema . prototype . localized ) return ;
15
+ mongoose . Schema . prototype . localized = ( ) => true ;
16
16
17
17
//traverse over all fields and modify the objects having "localize" attribute
18
18
var addI18n = function ( schema , obj , prefix ) {
@@ -99,7 +99,7 @@ module.exports = {
99
99
locales = sLocales ;
100
100
} ,
101
101
activate :prototype_mongoose ,
102
- active :( ) => ! ! mongoose . Schema . protection . localized
102
+ active :( ) => ! ! mongoose . Schema . prototype . localized
103
103
}
104
104
105
105
Original file line number Diff line number Diff line change 5
5
],
6
6
"name" : " mongoose-localize" ,
7
7
"description" : " A module to conver mongoose model property to set of localized properties." ,
8
- "version" : " 1.0.2 " ,
8
+ "version" : " 1.0.3 " ,
9
9
"keywords" : [
10
10
" mongoose" ,
11
11
" localize" ,
You can’t perform that action at this time.
0 commit comments