ghost 4.47.1 → 4.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -194,7 +194,7 @@ module.exports = {
|
|
|
194
194
|
// update all email recipients with a processed_at
|
|
195
195
|
await models.EmailRecipient
|
|
196
196
|
.where({batch_id: emailBatchId})
|
|
197
|
-
.save({processed_at: moment()}, Object.assign({}, knexOptions, {patch: true}));
|
|
197
|
+
.save({processed_at: moment()}, Object.assign({}, knexOptions, {autoRefresh: false, patch: true}));
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const errors = require('@tryghost/errors');
|
|
2
2
|
const config = require('../../shared/config');
|
|
3
3
|
const db = require('../data/db');
|
|
4
|
+
const logging = require('@tryghost/logging');
|
|
4
5
|
const LimitService = require('@tryghost/limit-service');
|
|
5
6
|
let limitService = new LimitService();
|
|
6
7
|
|
|
@@ -24,13 +25,22 @@ const init = () => {
|
|
|
24
25
|
|
|
25
26
|
const hostLimits = config.get('hostSettings:limits') || {};
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
try {
|
|
29
|
+
limitService.loadLimits({
|
|
30
|
+
limits: hostLimits,
|
|
31
|
+
subscription,
|
|
32
|
+
db,
|
|
33
|
+
helpLink,
|
|
34
|
+
errors
|
|
35
|
+
});
|
|
36
|
+
} catch (error) {
|
|
37
|
+
// Do not block the boot process for an incorrect usage error
|
|
38
|
+
if (error instanceof errors.IncorrectUsageError) {
|
|
39
|
+
logging.warn(error);
|
|
40
|
+
} else {
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
34
44
|
};
|
|
35
45
|
|
|
36
46
|
module.exports = limitService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghost",
|
|
3
|
-
"version": "4.47.
|
|
3
|
+
"version": "4.47.2",
|
|
4
4
|
"description": "The professional publishing platform",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"homepage": "https://ghost.org",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"@tryghost/color-utils": "0.1.13",
|
|
65
65
|
"@tryghost/config-url-helpers": "0.1.6",
|
|
66
66
|
"@tryghost/constants": "1.0.3",
|
|
67
|
-
"@tryghost/custom-theme-settings-service": "0.3.
|
|
67
|
+
"@tryghost/custom-theme-settings-service": "0.3.3",
|
|
68
68
|
"@tryghost/database-info": "0.3.3",
|
|
69
69
|
"@tryghost/debug": "0.1.16",
|
|
70
70
|
"@tryghost/domain-events": "0.1.12",
|
|
71
|
-
"@tryghost/email-analytics-provider-mailgun": "1.0.
|
|
72
|
-
"@tryghost/email-analytics-service": "1.0.
|
|
71
|
+
"@tryghost/email-analytics-provider-mailgun": "1.0.9",
|
|
72
|
+
"@tryghost/email-analytics-service": "1.0.7",
|
|
73
73
|
"@tryghost/errors": "1.2.12",
|
|
74
74
|
"@tryghost/express-dynamic-redirects": "0.2.11",
|
|
75
75
|
"@tryghost/helpers": "1.1.64",
|
package/yarn.lock
CHANGED
|
@@ -1861,10 +1861,10 @@
|
|
|
1861
1861
|
resolved "https://registry.yarnpkg.com/@tryghost/constants/-/constants-1.0.3.tgz#0009ca80a3d07a8a9ac30a74300ec570317d807e"
|
|
1862
1862
|
integrity sha512-MVcXmEqg4KrR091aY1kUmEo7ymcSAY7n7vbSA8QhOf4mx+ZWJQ71zsXVqI5RgVsipd7DxnpUIzeuKB8YVYwrUg==
|
|
1863
1863
|
|
|
1864
|
-
"@tryghost/custom-theme-settings-service@0.3.
|
|
1865
|
-
version "0.3.
|
|
1866
|
-
resolved "https://registry.yarnpkg.com/@tryghost/custom-theme-settings-service/-/custom-theme-settings-service-0.3.
|
|
1867
|
-
integrity sha512-
|
|
1864
|
+
"@tryghost/custom-theme-settings-service@0.3.3":
|
|
1865
|
+
version "0.3.3"
|
|
1866
|
+
resolved "https://registry.yarnpkg.com/@tryghost/custom-theme-settings-service/-/custom-theme-settings-service-0.3.3.tgz#0e7c2408e1523cca03e7b52e880fc0a463a93f0f"
|
|
1867
|
+
integrity sha512-kr7z5/NKXo6QgkV/nfPL8hMWMHNnA2D3kw86jH6stxyHZh/tGB9mEuEPzjOchh5g3C63rf/BDBS3SkoSij+e9w==
|
|
1868
1868
|
dependencies:
|
|
1869
1869
|
"@tryghost/debug" "^0.1.5"
|
|
1870
1870
|
"@tryghost/errors" "^1.0.0"
|
|
@@ -1912,20 +1912,20 @@
|
|
|
1912
1912
|
"@elastic/elasticsearch" "8.1.0"
|
|
1913
1913
|
"@tryghost/debug" "^0.1.16"
|
|
1914
1914
|
|
|
1915
|
-
"@tryghost/email-analytics-provider-mailgun@1.0.
|
|
1916
|
-
version "1.0.
|
|
1917
|
-
resolved "https://registry.yarnpkg.com/@tryghost/email-analytics-provider-mailgun/-/email-analytics-provider-mailgun-1.0.
|
|
1918
|
-
integrity sha512-
|
|
1915
|
+
"@tryghost/email-analytics-provider-mailgun@1.0.9":
|
|
1916
|
+
version "1.0.9"
|
|
1917
|
+
resolved "https://registry.yarnpkg.com/@tryghost/email-analytics-provider-mailgun/-/email-analytics-provider-mailgun-1.0.9.tgz#4e850949d485bb4ccba22d2fd4e6defad6a98f7d"
|
|
1918
|
+
integrity sha512-2RpDIg8K68pUSbnTfhSHkuPOMdRuaGrOCQKtzVVDy31LWwV70anlhoX34quMDkPkeUar47UoKrfQ99OQoKbVxQ==
|
|
1919
1919
|
dependencies:
|
|
1920
|
-
"@tryghost/email-analytics-service" "^1.0.
|
|
1920
|
+
"@tryghost/email-analytics-service" "^1.0.7"
|
|
1921
1921
|
"@tryghost/logging" "^2.0.0"
|
|
1922
1922
|
mailgun-js "^0.22.0"
|
|
1923
1923
|
moment "^2.29.1"
|
|
1924
1924
|
|
|
1925
|
-
"@tryghost/email-analytics-service@1.0.
|
|
1926
|
-
version "1.0.
|
|
1927
|
-
resolved "https://registry.yarnpkg.com/@tryghost/email-analytics-service/-/email-analytics-service-1.0.
|
|
1928
|
-
integrity sha512-
|
|
1925
|
+
"@tryghost/email-analytics-service@1.0.7", "@tryghost/email-analytics-service@^1.0.7":
|
|
1926
|
+
version "1.0.7"
|
|
1927
|
+
resolved "https://registry.yarnpkg.com/@tryghost/email-analytics-service/-/email-analytics-service-1.0.7.tgz#49bfe404aa74319353e04405821a4e301b4316cf"
|
|
1928
|
+
integrity sha512-cHVHiiwtWkTBBV05QSYSbcoKI+BB+N4qDSRWuhXImdhXJZhgf51g+ufj/njDYMQ5ELLfX85hYcET2BbBKur6kw==
|
|
1929
1929
|
dependencies:
|
|
1930
1930
|
"@tryghost/debug" "^0.1.9"
|
|
1931
1931
|
lodash "^4.17.20"
|