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
- limitService.loadLimits({
28
- limits: hostLimits,
29
- subscription,
30
- db,
31
- helpLink,
32
- errors
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.1",
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.2",
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.8",
72
- "@tryghost/email-analytics-service": "1.0.6",
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.2":
1865
- version "0.3.2"
1866
- resolved "https://registry.yarnpkg.com/@tryghost/custom-theme-settings-service/-/custom-theme-settings-service-0.3.2.tgz#79b63281435a168941e0bc121dc51ae48f0a7acf"
1867
- integrity sha512-xuGKnkEPHFerNff91Fraet1zYf4H4Rd+ax0hltRz3bGfBCxJcW9uOGfDQTqaHFlPAE9X+ZvrK68zIeSWKihufw==
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.8":
1916
- version "1.0.8"
1917
- resolved "https://registry.yarnpkg.com/@tryghost/email-analytics-provider-mailgun/-/email-analytics-provider-mailgun-1.0.8.tgz#18c105cde98e8bdbe1e6dbf3b4cf0431205ece75"
1918
- integrity sha512-RTjLlMxYjxSESkM0n0NDmMGTfBYb9AOyLNUEFiumR8PPvwa2G+HscJQmWA61Qgmwt1E/4Fe7mh3BJ7lBXCNdvA==
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.6"
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.6", "@tryghost/email-analytics-service@^1.0.6":
1926
- version "1.0.6"
1927
- resolved "https://registry.yarnpkg.com/@tryghost/email-analytics-service/-/email-analytics-service-1.0.6.tgz#13ea70cc9ad4cbdfb5e97b9f979b20b6a7c2825e"
1928
- integrity sha512-TjjchlATIb9Zd9Yhd0XX1EwgdgMyy85pe6HwWUwRSwiY8L2u9yRqcYWfAOOoNeKvSsyoCTtO4k9imdNUZaqjFQ==
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"