@remit/backend 0.0.48 → 0.0.50

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.
package/.env.test CHANGED
@@ -1,7 +1,4 @@
1
1
  SERVER_PORT=5433
2
- DYNAMODB_PORT=5434
3
- DYNAMODB_TABLE_NAME=remit-local
4
- DYNAMODB_PAGINATION_SALT=test-salt
5
2
  SQS_QUEUE_URL=http://localhost:9324/queue/remit-local
6
3
  NODE_ENV=development
7
4
  LOG_LEVEL=debug
@@ -327,8 +327,7 @@ app.listen(Number(port), "0.0.0.0", () => {
327
327
  {
328
328
  port: Number(port),
329
329
  url: `http://localhost:${port}`,
330
- dynamodbPort: env.DYNAMODB_PORT,
331
- dynamodbTable: env.DYNAMODB_TABLE_NAME,
330
+ dataBackend: process.env.DATA_BACKEND,
332
331
  nodeEnv: env.NODE_ENV,
333
332
  ...(isSelfHostBackend
334
333
  ? {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/backend",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Remit Mail Inspector API backend",
5
5
  "license": "MIT",
6
6
  "author": "",
@@ -90,19 +90,6 @@ export const groupAccountOverrides = (
90
90
  return byAccount;
91
91
  };
92
92
 
93
- /**
94
- * Load every account's display-name/mute overrides for an account configuration
95
- * in one query, grouped by accountId. Callers reading multiple accounts
96
- * (GET /config) use this once.
97
- */
98
- export const loadAccountOverridesForConfig = async (
99
- accountSetting: IAccountSettingRepository,
100
- accountConfigId: string,
101
- ): Promise<Map<string, AccountOverrides>> => {
102
- const settings = await accountSetting.listByAccountConfig(accountConfigId);
103
- return groupAccountOverrides(settings);
104
- };
105
-
106
93
  /**
107
94
  * Resolve one account's display-name/mute overrides by reading just its two
108
95
  * composite rows. Used by the account create/update handlers.
@@ -55,18 +55,6 @@ export const groupSignaturesByAccount = (
55
55
  return byAccount;
56
56
  };
57
57
 
58
- /**
59
- * Load every signature in an account configuration in one query, grouped by
60
- * account. Callers reading multiple accounts (GET /config) use this once.
61
- */
62
- export const loadSignaturesForConfig = async (
63
- accountSetting: IAccountSettingRepository,
64
- accountConfigId: string,
65
- ): Promise<Map<string, AccountSignature>> => {
66
- const settings = await accountSetting.listByAccountConfig(accountConfigId);
67
- return groupSignaturesByAccount(settings);
68
- };
69
-
70
58
  /**
71
59
  * Resolve the signature for a single account by reading just its two composite
72
60
  * rows. Used by the account create/update handlers, which act on one account.
@@ -38,15 +38,3 @@ export const buildFilterAnchor: BuildFilterAnchor = (
38
38
  if (!cached) cached = build();
39
39
  return cached(accountConfigId, anchorMessageId);
40
40
  };
41
-
42
- /** Inject the anchor builder — test use only. */
43
- export const _setBuildFilterAnchorForTest = (
44
- override: BuildFilterAnchor,
45
- ): void => {
46
- cached = override;
47
- };
48
-
49
- /** Reset the singleton — test use only. */
50
- export const _resetBuildFilterAnchorForTest = (): void => {
51
- cached = null;
52
- };