1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-18 04:21:12 +02:00

add comments

This commit is contained in:
Kushagra Gour
2019-03-08 13:42:54 +05:30
parent edf71ce296
commit 8b15c479f4
2 changed files with 13 additions and 0 deletions

View File

@@ -11,6 +11,11 @@ export const itemService = {
return doc.data();
});
},
/**
* Fetches user's item id list. CURRENTLY RUNS ONLY
* FOR LOGGED IN USER!!
*/
async getUserItemIds() {
if (window.user) {
return new Promise(resolve => {
@@ -29,6 +34,10 @@ export const itemService = {
});
},
/**
* Fetches all items FROM REMOTE ONLY CURRENTLY!!
* TODO: make it work for local too.
*/
async getAllItems() {
var t = Date.now();
var d = deferred();