@remit/backend 0.0.153 → 0.0.154
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/dist/src/handlers/me.js
CHANGED
|
@@ -55,7 +55,11 @@ export const MeOperations = {
|
|
|
55
55
|
throw err;
|
|
56
56
|
}
|
|
57
57
|
await ctx.client.queues.accountFanout.send({
|
|
58
|
-
body: {
|
|
58
|
+
body: {
|
|
59
|
+
type: "AccountDelete",
|
|
60
|
+
accountConfigId,
|
|
61
|
+
userId: ctx.identity.sub,
|
|
62
|
+
},
|
|
59
63
|
});
|
|
60
64
|
// biome-ignore lint/plugin/no-logger-info: account deletion is an audit-grade signal
|
|
61
65
|
logger.info({ accountConfigId }, "Account deletion initiated");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BETTER_SQLITE3_LIMITS, createSqliteRepositories, openSqliteDatabases, sqliteDatabasePathsFromEnv, } from "@remit/drizzle-service";
|
|
1
|
+
import { BETTER_SQLITE3_LIMITS, createSqliteRepositories, DEFAULT_MESSAGE_OBJECT_DELETE_CONCURRENCY, openSqliteDatabases, sqliteDatabasePathsFromEnv, } from "@remit/drizzle-service";
|
|
2
2
|
import { createRemitClient, } from "./create-remit-client.js";
|
|
3
3
|
import { buildSharedDeps, sqsQueues, sqsQueueUrlsFromEnv, } from "./shared-deps.js";
|
|
4
4
|
// The SQLite adapter composition (RFC 036). Every repo runs on the database
|
|
@@ -6,7 +6,10 @@ import { buildSharedDeps, sqsQueues, sqsQueueUrlsFromEnv, } from "./shared-deps.
|
|
|
6
6
|
export const composeSqliteClient = async (shared) => {
|
|
7
7
|
const databases = await openSqliteDatabases(sqliteDatabasePathsFromEnv());
|
|
8
8
|
return createRemitClient({
|
|
9
|
-
repositories: createSqliteRepositories(databases, BETTER_SQLITE3_LIMITS
|
|
9
|
+
repositories: createSqliteRepositories(databases, BETTER_SQLITE3_LIMITS, {
|
|
10
|
+
storage: shared.storage,
|
|
11
|
+
messageObjectDeleteConcurrency: DEFAULT_MESSAGE_OBJECT_DELETE_CONCURRENCY,
|
|
12
|
+
}),
|
|
10
13
|
...shared,
|
|
11
14
|
});
|
|
12
15
|
};
|