Compare commits
3 Commits
v1.6.8
...
clean-code
| Author | SHA1 | Date | |
|---|---|---|---|
| dc6fa562cc | |||
| 4fd7bb4a17 | |||
| b2305a35a6 |
@@ -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.6.9](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.6.8...v1.6.9) (2026-03-06)
|
||||||
|
|
||||||
## [1.6.8](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.6.7...v1.6.8) (2026-03-05)
|
## [1.6.8](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.6.7...v1.6.8) (2026-03-05)
|
||||||
|
|
||||||
## [1.6.7](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.6.6...v1.6.7) (2026-03-04)
|
## [1.6.7](https://wibugit.wibudev.com/wibu/hipmi/compare/v1.6.6...v1.6.7) (2026-03-04)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hipmi",
|
"name": "hipmi",
|
||||||
"version": "1.6.8",
|
"version": "1.6.9",
|
||||||
"private": true,
|
"private": true,
|
||||||
"prisma": {
|
"prisma": {
|
||||||
"seed": "bun prisma/seed.ts"
|
"seed": "bun prisma/seed.ts"
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
[{
|
[
|
||||||
"relation": ["delegate_permission/common.handle_all_urls"],
|
{
|
||||||
"target": {
|
"relation": ["delegate_permission/common.handle_all_urls"],
|
||||||
"namespace": "android_app",
|
"target": {
|
||||||
"package_name": "com.bip.hipmimobileapp",
|
"namespace": "android_app",
|
||||||
"sha256_cert_fingerprints": ["CFF8431520BFAE665025B68138774A4E64AA6338D2DF6C7D900A71F0551FFD2D"]
|
"package_name": "com.bip.hipmimobileapp",
|
||||||
|
"sha256_cert_fingerprints": ["CFF8431520BFAE665025B68138774A4E64AA6338D2DF6C7D900A71F0551FFD2D"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}]
|
]
|
||||||
@@ -7,23 +7,22 @@ const sendCodeOtp = async ({
|
|||||||
codeOtp?: string;
|
codeOtp?: string;
|
||||||
newMessage?: string;
|
newMessage?: string;
|
||||||
}) => {
|
}) => {
|
||||||
const msg = newMessage || `HIPMI - Kode ini bersifat RAHASIA dan JANGAN DI BAGIKAN KEPADA SIAPAPUN, termasuk anggota ataupun pengurus HIPMI lainnya.\n\n>> Kode OTP anda: ${codeOtp}.`;
|
const msg =
|
||||||
const enCode = encodeURIComponent(msg);
|
newMessage ||
|
||||||
const res = await fetch(
|
`HIPMI - Kode ini bersifat RAHASIA dan JANGAN DI BAGIKAN KEPADA SIAPAPUN, termasuk anggota ataupun pengurus HIPMI lainnya.\n\n>> Kode OTP anda: ${codeOtp}.`;
|
||||||
`https://cld-dkr-prod-wajs-server.wibudev.com/api/wa/code?nom=${nomor}&text=${enCode}`,
|
const enCode = msg;
|
||||||
{
|
|
||||||
cache: "no-cache",
|
const res = await fetch(`https://otp.wibudev.com/api/wa/send-text`, {
|
||||||
headers: {
|
method: "POST",
|
||||||
Authorization: `Bearer ${process.env.WA_SERVER_TOKEN}`,
|
headers: {
|
||||||
},
|
"Content-Type": "application/json",
|
||||||
|
Authorization: `Bearer ${process.env.WA_SERVER_TOKEN}`,
|
||||||
},
|
},
|
||||||
);
|
body: JSON.stringify({
|
||||||
// const res = await fetch(
|
number: nomor,
|
||||||
// `https://wa.wibudev.com/code?nom=${nomor}&text=HIPMI - Kode ini bersifat RAHASIA dan JANGAN DI BAGIKAN KEPADA SIAPAPUN, termasuk anggota ataupun pengurus HIPMI lainnya.
|
text: enCode,
|
||||||
// \n
|
}),
|
||||||
// >> Kode OTP anda: ${codeOtp}.
|
});
|
||||||
// `,
|
|
||||||
// );
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user