mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-18 04:21:12 +02:00
put limit on file mode creations in free plan
This commit is contained in:
@@ -253,5 +253,13 @@ export const itemService = {
|
||||
log(`Item ${itemId} unset for user`, arg);
|
||||
})
|
||||
.catch(error => log(error));
|
||||
},
|
||||
|
||||
async getCountOfFileModeItems() {
|
||||
const items = await this.getAllItems();
|
||||
return items.reduce((count, item) => {
|
||||
if (item.files) return ++count;
|
||||
return count;
|
||||
}, 0);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user