@bslau/hmm_prisma_schema 1.18.1 → 1.18.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bslau/hmm_prisma_schema",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "CIPA Development Team",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,15 +20,16 @@
|
|
|
20
20
|
},
|
|
21
21
|
"types": "./index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"prisma": "6.2.1",
|
|
24
|
-
"
|
|
23
|
+
"@prisma/client": "6.2.1",
|
|
24
|
+
"prisma": "6.2.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.12.0",
|
|
28
28
|
"@types/underscore": "^1.13.0",
|
|
29
|
+
"dotenv": "^17.2.3",
|
|
29
30
|
"ts-node": "^10.9.2",
|
|
30
31
|
"tsx": "^4.19.2",
|
|
31
32
|
"typescript": "^5.7.3",
|
|
32
33
|
"underscore": "^1.13.7"
|
|
33
34
|
}
|
|
34
|
-
}
|
|
35
|
+
}
|
|
@@ -101,7 +101,7 @@ async function deleteTorpedo(torpedoId: number) {
|
|
|
101
101
|
// 9️⃣ DELETE TORPEDO LAST
|
|
102
102
|
//
|
|
103
103
|
await tx.torpedo.delete({
|
|
104
|
-
where: {
|
|
104
|
+
where: { torpedoId: torpedoId },
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
|
|
@@ -113,7 +113,7 @@ async function main() {
|
|
|
113
113
|
|
|
114
114
|
if (!param) {
|
|
115
115
|
console.error("❌ Please provide a torpedo number.");
|
|
116
|
-
console.error("Usage: npx
|
|
116
|
+
console.error("Usage: npx ts-node -r dotenv/config prisma/deleteTorpedo.ts <torpedoNumber>");
|
|
117
117
|
process.exit(1);
|
|
118
118
|
}
|
|
119
119
|
|