@deckasoft/waify 0.3.9 → 0.3.10
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/cli/index.js +15 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1117,6 +1117,21 @@ var registerSetup = (program2) => {
|
|
|
1117
1117
|
const sessionData = SessionResponseSchema.parse(await sessionRes.json());
|
|
1118
1118
|
sessionId = sessionData.id ?? sessionData.name ?? "waify";
|
|
1119
1119
|
}
|
|
1120
|
+
spawnSync(
|
|
1121
|
+
"docker",
|
|
1122
|
+
[
|
|
1123
|
+
"compose",
|
|
1124
|
+
"-f",
|
|
1125
|
+
composePath(),
|
|
1126
|
+
"exec",
|
|
1127
|
+
"-T",
|
|
1128
|
+
"openwa-api",
|
|
1129
|
+
"sh",
|
|
1130
|
+
"-c",
|
|
1131
|
+
"rm -f /app/data/sessions/session-waify/Singleton*"
|
|
1132
|
+
],
|
|
1133
|
+
{ encoding: "utf-8" }
|
|
1134
|
+
);
|
|
1120
1135
|
console.warn("Starting WhatsApp engine...");
|
|
1121
1136
|
const startRes = await fetchWithTimeout(`${baseUrl}/api/sessions/${sessionId}/start`, {
|
|
1122
1137
|
method: "POST",
|