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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2505003e224d063bd2c51742b431b315cef9e83b08c867adb0687f9184ad559
|
4
|
+
data.tar.gz: 0d3e3c74ef4c00f0e369302a592fccc0749ddb53c7143abd0be4dc1cf7da6418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
}
|
data/pg_rails/lib/version.rb
CHANGED