0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
Naz d72ba77aba Added support for max periodic limit check
refs https://github.com/TryGhost/Team/issues/588

- This is a new type of limit allowing to measure resource use (e.g. sent emails) per period (e.g. subscription, billing, cycle, etc)
- To enable periodical limit add  following values under `hostSettings.limits`:
```
"emails": {
    "maxPeriodic": 10,
    "error": "Your plan supports up to {{max}} emails. Please upgrade to reenable sending emails."
}
```
and following under `hostSettings.subscription`:
```
"subscription": {
    "start": "2020-04-02T15:53:55.000Z",
    "interval": "month"
}
```
- Above config would allow checking if 10 emails per month starting on the 2nd of every month has been reached untill now
2021-05-07 18:43:47 +04:00
..
adapters Moved i18n to shared 2021-05-04 13:03:38 +01:00
api Added ability to send a newsletter to members with a certain label or product (#12932) 2021-05-07 11:56:41 +01:00
data Removed unique constraint from Product names (#12928) 2021-05-07 13:34:23 +01:00
lib Extracted package-json lib to Utils 2021-05-07 12:35:06 +01:00
models Added ability to send a newsletter to members with a certain label or product (#12932) 2021-05-07 11:56:41 +01:00
public New logo in Admin (#12768) 2021-03-18 17:27:27 +00:00
services Added support for max periodic limit check 2021-05-07 18:43:47 +04:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Moved i18n to shared 2021-05-04 13:03:38 +01:00
analytics-events.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
ghost-server.js Refactored urlUtils out of ghost-server 2021-05-05 14:24:59 +01:00
notify.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js Moved i18n to shared 2021-05-04 13:03:38 +01:00