Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 4 changed files Side-by-side Diff

... ... @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4 4  
5 5 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6 6  
  7 +#### [v2.2.2](https://gitlab.kodesumber.com/komodo/komodo-gw-oddeven2/compare/v2.2.1...v2.2.2)
  8 +
  9 +- Add pending on last digit of destination is 0 [`e816983`](https://gitlab.kodesumber.com/komodo/komodo-gw-oddeven2/commit/e81698329765bf70dffb2c8db9b2f15190e38920)
  10 +
7 11 #### [v2.2.1](https://gitlab.kodesumber.com/komodo/komodo-gw-oddeven2/compare/v2.2.0...v2.2.1)
8 12  
  13 +> 8 February 2022
  14 +
9 15 - Bump to komodo-sdk-push-trx@0.1.13 [`4cc80ab`](https://gitlab.kodesumber.com/komodo/komodo-gw-oddeven2/commit/4cc80ab34fda51f6ce26e590ddcbb2024c31317b)
10 16  
11 17 #### [v2.2.0](https://gitlab.kodesumber.com/komodo/komodo-gw-oddeven2/compare/v2.1.3...v2.2.0)
... ... @@ -10,7 +10,16 @@ function buy(task, xid) {
10 10  
11 11 setTimeout(
12 12 () => {
13   - if (task.destination % 2) {
  13 + const destination = task.destination.toString();
  14 +
  15 + if ((destination % 10) === 0) {
  16 + pull.report({
  17 + trx_id: task.trx_id,
  18 + rc: '68',
  19 + message: `PENDING karena nomor tujuan ${task.destination} diakhiri 0`,
  20 + balance: config.supplier_ending_balance,
  21 + });
  22 + } else if (destination % 2) {
14 23 pull.report({
15 24 trx_id: task.trx_id,
16 25 rc: '14',
1 1 {
2 2 "name": "komodo-gw-oddeven2",
3   - "version": "2.2.1",
  3 + "version": "2.2.2",
4 4 "lockfileVersion": 2,
5 5 "requires": true,
6 6 "packages": {
7 7 "": {
8 8 "name": "komodo-gw-oddeven2",
9   - "version": "2.2.1",
  9 + "version": "2.2.2",
10 10 "license": "ISC",
11 11 "dependencies": {
12 12 "komodo-sdk": "^1.44.2",
1 1 {
2 2 "name": "komodo-gw-oddeven2",
3   - "version": "2.2.1",
  3 + "version": "2.2.2",
4 4 "description": "Komodo Dummy Gateway",
5 5 "main": "index.js",
6 6 "scripts": {