forked from jmug/stoatchat
feat(core): separate limits for new user accounts
This commit is contained in:
9 files changed
+38
-22
No files matched your search
@@ -80,8 +80,7 @@ impl Bot {
|
||||
return Err(create_error!(IsBot));
|
||||
}
|
||||
|
||||
let config = config().await;
|
||||
if db.get_number_of_bots_by_user(&owner.id).await? >= config.features.limits.default.bots {
|
||||
if db.get_number_of_bots_by_user(&owner.id).await? >= owner.limits().await.bots {
|
||||
return Err(create_error!(ReachedMaximumBots));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user