Subscriptions
This commit is contained in:
@@ -153,6 +153,11 @@ userDB = (DB) => {
|
||||
});
|
||||
}
|
||||
|
||||
DB.isSubscriptor = async (profileid) => {
|
||||
const profile = DB.getProfileCache(profileid);
|
||||
return profile && profile.subscription && profile.subscription > (new Date() - 0);
|
||||
}
|
||||
|
||||
//Groups
|
||||
DB.getGroups = async (excludePrivate = false) => {
|
||||
let query = {
|
||||
|
||||
Reference in New Issue
Block a user