patchrelay 0.74.5 → 0.74.6
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/build-info.json +3 -3
- package/dist/cli/commands/repo.js +2 -2
- package/dist/db.js +13 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -103,7 +103,7 @@ async function handleRepoLink(params) {
|
|
|
103
103
|
db.linearInstallations.setProjectInstallation(githubRepo, installation.id);
|
|
104
104
|
}
|
|
105
105
|
finally {
|
|
106
|
-
db.
|
|
106
|
+
db.close();
|
|
107
107
|
}
|
|
108
108
|
const serviceState = await tryManageService(params.runCommand, restartServiceCommands());
|
|
109
109
|
if (!serviceState.ok) {
|
|
@@ -150,7 +150,7 @@ async function handleRepoUnlink(params) {
|
|
|
150
150
|
db.linearInstallations.unlinkProjectInstallation(githubRepo);
|
|
151
151
|
}
|
|
152
152
|
finally {
|
|
153
|
-
db.
|
|
153
|
+
db.close();
|
|
154
154
|
}
|
|
155
155
|
const serviceState = await tryManageService(params.runCommand, restartServiceCommands());
|
|
156
156
|
if (!serviceState.ok) {
|
package/dist/db.js
CHANGED
|
@@ -58,6 +58,19 @@ export class PatchRelayDatabase {
|
|
|
58
58
|
transaction(fn) {
|
|
59
59
|
return this.connection.transaction(fn)();
|
|
60
60
|
}
|
|
61
|
+
close() {
|
|
62
|
+
this.connection.close();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Raw SQLite handle for tests ONLY. Production code must go through the
|
|
66
|
+
* stores; this exists so fixtures can backdate timestamps, force invalid
|
|
67
|
+
* edge states, and exercise the migration/schema-guard machinery — none of
|
|
68
|
+
* which the store API exposes, by design. The deliberately ugly name keeps
|
|
69
|
+
* it greppable so a production leak can't slip back in unnoticed.
|
|
70
|
+
*/
|
|
71
|
+
unsafeRawConnectionForTests() {
|
|
72
|
+
return this.connection;
|
|
73
|
+
}
|
|
61
74
|
upsertIssue(params) {
|
|
62
75
|
return this.issues.upsertIssue(params);
|
|
63
76
|
}
|