Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| defafe694f | |||
| cd3a9cc223 |
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.7.3](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.7.2...v1.7.3) (2026-03-27)
|
||||||
|
|
||||||
## [1.7.2](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.7.1...v1.7.2) (2026-03-13)
|
## [1.7.2](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.7.1...v1.7.2) (2026-03-13)
|
||||||
|
|
||||||
## [1.7.1](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.7.0...v1.7.1) (2026-03-11)
|
## [1.7.1](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.7.0...v1.7.1) (2026-03-11)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hipmi",
|
"name": "hipmi",
|
||||||
"version": "1.7.2",
|
"version": "1.7.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"prisma": {
|
"prisma": {
|
||||||
"seed": "bun prisma/seed.ts"
|
"seed": "bun prisma/seed.ts"
|
||||||
|
|||||||
@@ -46,9 +46,14 @@ async function gracefulShutdown(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Register shutdown handlers (hanya di environment Node.js)
|
// Register shutdown handlers (hanya di environment Node.js)
|
||||||
|
// Cegah duplikasi listener dengan cek listenerCount terlebih dahulu
|
||||||
if (typeof process !== "undefined") {
|
if (typeof process !== "undefined") {
|
||||||
process.on("SIGINT", gracefulShutdown);
|
if (process.listenerCount("SIGINT") === 0) {
|
||||||
process.on("SIGTERM", gracefulShutdown);
|
process.on("SIGINT", gracefulShutdown);
|
||||||
|
}
|
||||||
|
if (process.listenerCount("SIGTERM") === 0) {
|
||||||
|
process.on("SIGTERM", gracefulShutdown);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default prisma;
|
export default prisma;
|
||||||
|
|||||||
Reference in New Issue
Block a user