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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user