mumuki-domain 7.0.4 → 7.0.5

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: ffa56c23f0c7bcb575dcf14c82e153238b613bf60260a0aa644c5e145f266d4d
4
- data.tar.gz: 0b8bfbd034a4baba57fa602939a7aaf2a6f86067d7634fbf50dc2c8fee05d60f
3
+ metadata.gz: 43e248d7eff85d6875aa00ba46a874ec5084305197ab4bd6d3a80d84c2aa15ee
4
+ data.tar.gz: b859a8015918f66bf45beda113c132424b6ab569c4047854ae6bcb750a6d4f17
5
5
  SHA512:
6
- metadata.gz: 39dec913cb3d902002d331e3f50c5ea937982b963cd542cef5ef77dbab23034c6a4bc56e8feeb7ebe676e3ce7acb53faecd070894605206bb3ea7abe0c677c2c
7
- data.tar.gz: 92f6aa4b7475ab4d9a7dc72f1e26dc240a35fe9a1ce88edef5d9e03c5ed35546d00a8aa44b83aef73c4f95b9a36a6a7943714b581649709e51ea56ec69a36528
6
+ metadata.gz: 8c4c355bf7e2fb98b1326b5fd175fd4178ad2c0c8e75d50d539b677a548121b2ed52f787ed34083a6f1a92b67e1d60e4e76e6f3f657fa862c22e4b562cdaa738
7
+ data.tar.gz: 68ac57f0292ab290af52b373fdaf32fb927c86666eecaf70981588870867b0a4faa32186e7bf9e45be1f81854e2f301b2a121bec79497b74d3dd0f601b03eedb
data/app/models/exam.rb CHANGED
@@ -123,7 +123,7 @@ class Exam < ApplicationRecord
123
123
  def self.adapt_json_values(exam)
124
124
  exam[:guide_id] = Guide.find_by(slug: exam[:slug]).id
125
125
  exam[:organization_id] = Organization.current.id
126
- exam[:users] = exam[:uids].map { |uid| User.find_by(uid: uid) }.compact
126
+ exam[:users] = User.where(uid: exam[:uids])
127
127
  [:start_time, :end_time].each { |param| exam[param] = exam[param].to_time }
128
128
  end
129
129
 
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '7.0.4'
3
+ VERSION = '7.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.4
4
+ version: 7.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails