notherbase-fs 3.3.1 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,14 +124,6 @@ export default class User {
124
124
  }
125
125
  }
126
126
 
127
- /**
128
- * Checks if a user is logged in.
129
- */
130
- loggedIn = () => {
131
- if (this.id) return true;
132
- else return false;
133
- }
134
-
135
127
  /**
136
128
  * Changes a user's email address on file.
137
129
  * @param {Object} req An Express.js request.
package/models/user.js CHANGED
@@ -101,5 +101,13 @@ export default class User extends Spirit {
101
101
  this.email = email;
102
102
  this.id = id;
103
103
  }
104
+
105
+ /**
106
+ * Checks if a user is logged in.
107
+ */
108
+ loggedIn = () => {
109
+ if (this.id) return true;
110
+ else return false;
111
+ }
104
112
  }
105
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {