@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 +0 -3
- package/dev-server/server.ts +1 -2
- package/package.json +1 -1
- package/src/handlers/account-overrides.ts +0 -13
- package/src/handlers/account-signature.ts +0 -12
- package/src/service/filter.ts +0 -12
package/.env.test
CHANGED
package/dev-server/server.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
@@ -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.
|
package/src/service/filter.ts
CHANGED
|
@@ -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
|
-
};
|