notherbase-fs 4.1.2 → 4.1.4
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.
- package/controllers/user.js +0 -1
- package/notherbase-fs.js +2 -1
- package/package.json +1 -1
- package/test/the-front/index.ejs +2 -2
package/controllers/user.js
CHANGED
|
@@ -190,7 +190,6 @@ export default class User {
|
|
|
190
190
|
if (check(res, user, "Account not found!")) {
|
|
191
191
|
let data = await req.db.Spirit.recallAll(null, user.memory._id);
|
|
192
192
|
let dataToDownload = data.map(d => d.memory);
|
|
193
|
-
dataToDownload.unshift(user.memory.data);
|
|
194
193
|
|
|
195
194
|
successJSON(res, "Data Downloaded", dataToDownload);
|
|
196
195
|
}
|
package/notherbase-fs.js
CHANGED
package/package.json
CHANGED
package/test/the-front/index.ejs
CHANGED
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
let test = new Test();
|
|
100
100
|
|
|
101
101
|
let downloadData = async () => {
|
|
102
|
-
let res = base.downloadData();
|
|
102
|
+
let res = await base.downloadData();
|
|
103
103
|
console.log(res.message);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
let deleteData = async () => {
|
|
107
|
-
let res = base.deleteData($('#password').val());
|
|
107
|
+
let res = await base.deleteData($('#password').val());
|
|
108
108
|
console.log(res.message);
|
|
109
109
|
}
|
|
110
110
|
|