pg_rails 7.2.2 → 7.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20cb7ade648f78aa73ed631d9732326edc5a251a36141d054084366d9a6b9859
4
- data.tar.gz: 38c923c5650e20ecb6be91b304ec3014cbd189976b254500275f5d2bf77ea9a0
3
+ metadata.gz: c2505003e224d063bd2c51742b431b315cef9e83b08c867adb0687f9184ad559
4
+ data.tar.gz: 0d3e3c74ef4c00f0e369302a592fccc0749ddb53c7143abd0be4dc1cf7da6418
5
5
  SHA512:
6
- metadata.gz: 156c1e465ab38406145f7d3bddf65fa0e40bf28a16109c15eb41f623735032dd23f7ddfb4a3341abbe8167ffd065082aef10945c8181c38bb01c4c368aa1853e
7
- data.tar.gz: 7691712c1641cceb9ed53b6740ad9650844b69056c8433c4b65eb149cc9014ebce8870583306ebe7ed55c23209ec6b762b1a6961225fd65281aa5ddeec133dad
6
+ metadata.gz: 64ee127677a3f745bd0d29b8fac8150b03470d4cd03d6d6b37078168a3bfd43ac3332f085942bb9d0ea94b164fdd863f65df76c116f8e1ff708ebe012ac31348
7
+ data.tar.gz: 6cb3a28799ddd2a7c2fb621a1875b246b825355cd0e7b3a66925030138f46b0d81e1d5c0fa22ce29c4c5c747984145076af5a89085891112230ed34ebcd61732
@@ -48,22 +48,23 @@ export default class extends Controller {
48
48
  responseKind: 'json'
49
49
  })
50
50
 
51
+ let json = null
51
52
  if (response.ok) {
52
- const json = await response.json
53
+ json = await response.json
53
54
  fechaEl.value = json.date
54
55
  this.element.querySelector('button').removeAttribute('disabled')
55
56
  this.closePopover()
56
57
  } else {
57
58
  let message = 'Hubo un error'
58
59
  try {
59
- const json = await response.json
60
+ json = await response.json
60
61
  message = json.html || 'Hubo un error'
61
- } catch {
62
+ } catch (e) {
62
63
  // JSON parser error
64
+ Rollbar.error(e)
63
65
  }
64
66
  flashMessage(message, 'warning', true)
65
67
  this.element.querySelector('button').removeAttribute('disabled')
66
- Rollbar.error('date jumper error', json)
67
68
  }
68
69
  }
69
70
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.2.2'
4
+ VERSION = '7.2.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.2
4
+ version: 7.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso