@budibase/server 1.0.136 → 1.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/builder/assets/{index.05ef6162.js → index.6db89ad9.js} +121 -121
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +76 -62
  4. package/coverage/coverage-final.json +3 -3
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/index.html +1 -1
  15. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  44. package/coverage/lcov-report/api/index.html +1 -1
  45. package/coverage/lcov-report/api/index.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/index.html +1 -1
  57. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  71. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  74. package/coverage/lcov-report/automations/actions.js.html +1 -1
  75. package/coverage/lcov-report/automations/automationUtils.js.html +46 -10
  76. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  77. package/coverage/lcov-report/automations/index.html +19 -19
  78. package/coverage/lcov-report/automations/index.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/index.html +1 -1
  86. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  96. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  105. package/coverage/lcov-report/constants/index.html +1 -1
  106. package/coverage/lcov-report/constants/index.js.html +1 -1
  107. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  108. package/coverage/lcov-report/constants/screens.js.html +1 -1
  109. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  110. package/coverage/lcov-report/db/index.html +1 -1
  111. package/coverage/lcov-report/db/index.js.html +1 -1
  112. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  113. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  115. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  116. package/coverage/lcov-report/db/newid.js.html +1 -1
  117. package/coverage/lcov-report/db/utils.js.html +1 -1
  118. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  119. package/coverage/lcov-report/events/index.html +1 -1
  120. package/coverage/lcov-report/events/index.js.html +1 -1
  121. package/coverage/lcov-report/events/utils.js.html +1 -1
  122. package/coverage/lcov-report/index.html +28 -28
  123. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  124. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  125. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  126. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  127. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  128. package/coverage/lcov-report/middleware/index.html +1 -1
  129. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  130. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  131. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  132. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  133. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  134. package/coverage/lcov-report/threads/automation.js.html +67 -34
  135. package/coverage/lcov-report/threads/index.html +26 -26
  136. package/coverage/lcov-report/threads/query.js.html +16 -19
  137. package/coverage/lcov-report/threads/utils.js.html +1 -1
  138. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  139. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  140. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  141. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  142. package/coverage/lcov-report/utilities/global.js.html +1 -1
  143. package/coverage/lcov-report/utilities/index.html +1 -1
  144. package/coverage/lcov-report/utilities/index.js.html +1 -1
  145. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  146. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  147. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  148. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  149. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  150. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  151. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  152. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  153. package/coverage/lcov-report/utilities/security.js.html +1 -1
  154. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  155. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  156. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  157. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  158. package/coverage/lcov-report/utilities/users.js.html +1 -1
  159. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  160. package/coverage/lcov.info +132 -114
  161. package/dist/automations/automationUtils.js +12 -0
  162. package/dist/integrations/microsoftSqlServer.js +1 -6
  163. package/dist/integrations/mysql.js +16 -14
  164. package/dist/integrations/oracle.js +2 -6
  165. package/dist/integrations/postgres.js +1 -6
  166. package/dist/integrations/utils.js +15 -5
  167. package/dist/package.json +5 -5
  168. package/dist/threads/automation.js +25 -16
  169. package/dist/threads/query.js +7 -7
  170. package/dist/tsconfig.build.tsbuildinfo +1 -1
  171. package/dist/utilities/fileSystem/index.js +11 -7
  172. package/package.json +6 -6
  173. package/src/automations/automationUtils.js +12 -0
  174. package/src/integrations/microsoftSqlServer.ts +1 -3
  175. package/src/integrations/mysql.ts +18 -12
  176. package/src/integrations/oracle.ts +3 -3
  177. package/src/integrations/postgres.ts +1 -2
  178. package/src/integrations/utils.ts +16 -5
  179. package/src/threads/automation.js +28 -17
  180. package/src/threads/query.js +7 -8
  181. package/src/utilities/fileSystem/index.js +16 -8
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.05ef6162.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.6db89ad9.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.5240f480.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.bb5e3dfd.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1651590522009" clover="3.2.0">
3
- <project timestamp="1651590522009" name="All files">
4
- <metrics statements="4122" coveredstatements="2974" conditionals="1687" coveredconditionals="874" methods="613" coveredmethods="432" elements="6422" coveredelements="4280" complexity="0" loc="4122" ncloc="4122" packages="23" files="131" classes="131"/>
2
+ <coverage generated="1651667092274" clover="3.2.0">
3
+ <project timestamp="1651667092274" name="All files">
4
+ <metrics statements="4136" coveredstatements="2979" conditionals="1697" coveredconditionals="874" methods="610" coveredmethods="429" elements="6443" coveredelements="4282" complexity="0" loc="4136" ncloc="4136" packages="23" files="131" classes="131"/>
5
5
  <package name="api">
6
6
  <metrics statements="33" coveredstatements="31" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -2438,7 +2438,7 @@
2438
2438
  </file>
2439
2439
  </package>
2440
2440
  <package name="automations">
2441
- <metrics statements="145" coveredstatements="121" conditionals="58" coveredconditionals="46" methods="18" coveredmethods="13"/>
2441
+ <metrics statements="152" coveredstatements="122" conditionals="62" coveredconditionals="46" methods="19" coveredmethods="13"/>
2442
2442
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2443
2443
  <metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2444
2444
  <line num="1" count="41" type="stmt"/>
@@ -2467,7 +2467,7 @@
2467
2467
  <line num="74" count="41" type="stmt"/>
2468
2468
  </file>
2469
2469
  <file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
2470
- <metrics statements="39" coveredstatements="31" conditionals="25" coveredconditionals="21" methods="4" coveredmethods="3"/>
2470
+ <metrics statements="46" coveredstatements="32" conditionals="29" coveredconditionals="21" methods="5" coveredmethods="3"/>
2471
2471
  <line num="1" count="41" type="stmt"/>
2472
2472
  <line num="2" count="41" type="stmt"/>
2473
2473
  <line num="20" count="41" type="stmt"/>
@@ -2507,6 +2507,13 @@
2507
2507
  <line num="83" count="0" type="stmt"/>
2508
2508
  <line num="84" count="0" type="stmt"/>
2509
2509
  <line num="87" count="0" type="stmt"/>
2510
+ <line num="90" count="41" type="stmt"/>
2511
+ <line num="91" count="0" type="cond" truecount="0" falsecount="2"/>
2512
+ <line num="92" count="0" type="stmt"/>
2513
+ <line num="94" count="0" type="cond" truecount="0" falsecount="2"/>
2514
+ <line num="95" count="0" type="stmt"/>
2515
+ <line num="97" count="0" type="stmt"/>
2516
+ <line num="99" count="0" type="stmt"/>
2510
2517
  </file>
2511
2518
  <file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
2512
2519
  <metrics statements="28" coveredstatements="15" conditionals="6" coveredconditionals="3" methods="3" coveredmethods="0"/>
@@ -3674,9 +3681,9 @@
3674
3681
  </file>
3675
3682
  </package>
3676
3683
  <package name="threads">
3677
- <metrics statements="267" coveredstatements="200" conditionals="115" coveredconditionals="65" methods="34" coveredmethods="30"/>
3684
+ <metrics statements="274" coveredstatements="204" conditionals="121" coveredconditionals="65" methods="30" coveredmethods="27"/>
3678
3685
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
3679
- <metrics statements="132" coveredstatements="79" conditionals="57" coveredconditionals="21" methods="12" coveredmethods="10"/>
3686
+ <metrics statements="138" coveredstatements="82" conditionals="63" coveredconditionals="21" methods="10" coveredmethods="9"/>
3680
3687
  <line num="1" count="3" type="stmt"/>
3681
3688
  <line num="2" count="3" type="stmt"/>
3682
3689
  <line num="3" count="3" type="stmt"/>
@@ -3729,7 +3736,9 @@
3729
3736
  <line num="100" count="6" type="stmt"/>
3730
3737
  <line num="101" count="6" type="stmt"/>
3731
3738
  <line num="102" count="6" type="stmt"/>
3739
+ <line num="103" count="6" type="stmt"/>
3732
3740
  <line num="105" count="6" type="stmt"/>
3741
+ <line num="106" count="6" type="stmt"/>
3733
3742
  <line num="107" count="6" type="stmt"/>
3734
3743
  <line num="108" count="6" type="stmt"/>
3735
3744
  <line num="109" count="5" type="stmt"/>
@@ -3740,78 +3749,82 @@
3740
3749
  <line num="117" count="5" type="cond" truecount="1" falsecount="1"/>
3741
3750
  <line num="118" count="0" type="stmt"/>
3742
3751
  <line num="120" count="5" type="cond" truecount="1" falsecount="1"/>
3743
- <line num="121" count="5" type="stmt"/>
3744
- <line num="122" count="5" type="stmt"/>
3745
- <line num="123" count="5" type="stmt"/>
3746
- <line num="126" count="5" type="cond" truecount="1" falsecount="1"/>
3747
- <line num="129" count="0" type="stmt"/>
3748
- <line num="133" count="0" type="stmt"/>
3749
- <line num="137" count="0" type="stmt"/>
3750
- <line num="141" count="0" type="stmt"/>
3751
- <line num="142" count="0" type="cond" truecount="0" falsecount="2"/>
3752
- <line num="148" count="0" type="stmt"/>
3752
+ <line num="125" count="5" type="stmt"/>
3753
+ <line num="126" count="5" type="stmt"/>
3754
+ <line num="127" count="5" type="stmt"/>
3755
+ <line num="130" count="5" type="cond" truecount="1" falsecount="1"/>
3756
+ <line num="131" count="0" type="stmt"/>
3757
+ <line num="135" count="0" type="stmt"/>
3758
+ <line num="140" count="0" type="stmt"/>
3759
+ <line num="141" count="0" type="cond" truecount="0" falsecount="2"/>
3760
+ <line num="147" count="0" type="stmt"/>
3761
+ <line num="151" count="0" type="stmt"/>
3753
3762
  <line num="152" count="0" type="stmt"/>
3754
3763
  <line num="153" count="0" type="stmt"/>
3755
- <line num="154" count="0" type="stmt"/>
3756
- <line num="159" count="0" type="stmt"/>
3757
- <line num="160" count="0" type="cond" truecount="0" falsecount="2"/>
3764
+ <line num="157" count="0" type="cond" truecount="0" falsecount="2"/>
3758
3765
  <line num="161" count="0" type="stmt"/>
3759
- <line num="164" count="0" type="cond" truecount="0" falsecount="2"/>
3760
- <line num="165" count="0" type="stmt"/>
3766
+ <line num="163" count="0" type="stmt"/>
3767
+ <line num="166" count="0" type="stmt"/>
3768
+ <line num="172" count="0" type="stmt"/>
3761
3769
  <line num="173" count="0" type="cond" truecount="0" falsecount="2"/>
3762
3770
  <line num="174" count="0" type="stmt"/>
3763
- <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
3764
- <line num="186" count="0" type="stmt"/>
3765
- <line num="190" count="0" type="stmt"/>
3766
- <line num="191" count="0" type="stmt"/>
3767
- <line num="192" count="0" type="stmt"/>
3771
+ <line num="177" count="0" type="cond" truecount="0" falsecount="2"/>
3772
+ <line num="178" count="0" type="stmt"/>
3773
+ <line num="186" count="0" type="cond" truecount="0" falsecount="2"/>
3774
+ <line num="187" count="0" type="stmt"/>
3768
3775
  <line num="195" count="0" type="cond" truecount="0" falsecount="2"/>
3769
3776
  <line num="199" count="0" type="stmt"/>
3770
3777
  <line num="203" count="0" type="stmt"/>
3771
3778
  <line num="204" count="0" type="stmt"/>
3772
3779
  <line num="205" count="0" type="stmt"/>
3773
- <line num="210" count="5" type="cond" truecount="1" falsecount="1"/>
3774
- <line num="211" count="0" type="stmt"/>
3780
+ <line num="208" count="0" type="cond" truecount="0" falsecount="2"/>
3775
3781
  <line num="212" count="0" type="stmt"/>
3776
- <line num="216" count="5" type="stmt"/>
3777
- <line num="217" count="5" type="stmt"/>
3778
- <line num="218" count="5" type="stmt"/>
3779
- <line num="219" count="5" type="stmt"/>
3780
- <line num="221" count="5" type="cond" truecount="1" falsecount="1"/>
3781
- <line num="222" count="5" type="stmt"/>
3782
- <line num="223" count="5" type="stmt"/>
3782
+ <line num="216" count="0" type="stmt"/>
3783
+ <line num="217" count="0" type="stmt"/>
3784
+ <line num="218" count="0" type="stmt"/>
3785
+ <line num="223" count="5" type="cond" truecount="1" falsecount="1"/>
3786
+ <line num="224" count="0" type="stmt"/>
3787
+ <line num="225" count="0" type="stmt"/>
3788
+ <line num="229" count="5" type="stmt"/>
3783
3789
  <line num="230" count="5" type="stmt"/>
3784
- <line num="233" count="5" type="cond" truecount="2" falsecount="2"/>
3785
- <line num="234" count="0" type="stmt"/>
3786
- <line num="235" count="0" type="stmt"/>
3787
- <line num="239" count="0" type="stmt"/>
3788
- <line num="241" count="5" type="cond" truecount="2" falsecount="2"/>
3789
- <line num="242" count="0" type="stmt"/>
3790
- <line num="244" count="5" type="stmt"/>
3790
+ <line num="231" count="5" type="stmt"/>
3791
+ <line num="232" count="5" type="stmt"/>
3792
+ <line num="234" count="5" type="cond" truecount="1" falsecount="1"/>
3793
+ <line num="235" count="5" type="stmt"/>
3794
+ <line num="236" count="5" type="stmt"/>
3795
+ <line num="243" count="5" type="stmt"/>
3796
+ <line num="246" count="5" type="cond" truecount="2" falsecount="2"/>
3797
+ <line num="247" count="0" type="stmt"/>
3798
+ <line num="248" count="0" type="stmt"/>
3791
3799
  <line num="252" count="0" type="stmt"/>
3792
- <line num="253" count="0" type="stmt"/>
3793
- <line num="255" count="5" type="cond" truecount="1" falsecount="1"/>
3794
- <line num="256" count="0" type="stmt"/>
3795
- <line num="257" count="0" type="cond" truecount="0" falsecount="2"/>
3796
- <line num="258" count="0" type="stmt"/>
3797
- <line num="259" count="0" type="stmt"/>
3798
- <line num="260" count="0" type="stmt"/>
3799
- <line num="265" count="5" type="cond" truecount="3" falsecount="1"/>
3800
+ <line num="254" count="5" type="cond" truecount="2" falsecount="2"/>
3801
+ <line num="255" count="0" type="stmt"/>
3802
+ <line num="257" count="5" type="stmt"/>
3803
+ <line num="265" count="0" type="stmt"/>
3800
3804
  <line num="266" count="0" type="stmt"/>
3805
+ <line num="268" count="5" type="cond" truecount="1" falsecount="1"/>
3806
+ <line num="269" count="0" type="stmt"/>
3807
+ <line num="270" count="0" type="cond" truecount="0" falsecount="2"/>
3801
3808
  <line num="271" count="0" type="stmt"/>
3802
- <line num="278" count="0" type="stmt"/>
3809
+ <line num="272" count="0" type="stmt"/>
3810
+ <line num="273" count="0" type="stmt"/>
3811
+ <line num="278" count="5" type="cond" truecount="3" falsecount="1"/>
3803
3812
  <line num="279" count="0" type="stmt"/>
3804
- <line num="283" count="6" type="stmt"/>
3805
- <line num="287" count="3" type="stmt"/>
3806
- <line num="288" count="6" type="stmt"/>
3807
- <line num="289" count="6" type="stmt"/>
3808
- <line num="290" count="6" type="stmt"/>
3809
- <line num="294" count="6" type="stmt"/>
3810
- <line num="297" count="6" type="stmt"/>
3811
- <line num="300" count="0" type="stmt"/>
3813
+ <line num="284" count="0" type="stmt"/>
3814
+ <line num="291" count="0" type="stmt"/>
3815
+ <line num="292" count="0" type="stmt"/>
3816
+ <line num="296" count="6" type="stmt"/>
3817
+ <line num="300" count="3" type="stmt"/>
3818
+ <line num="301" count="6" type="stmt"/>
3819
+ <line num="302" count="6" type="stmt"/>
3820
+ <line num="303" count="6" type="stmt"/>
3821
+ <line num="307" count="6" type="stmt"/>
3822
+ <line num="308" count="6" type="stmt"/>
3823
+ <line num="309" count="6" type="stmt"/>
3824
+ <line num="311" count="0" type="stmt"/>
3812
3825
  </file>
3813
3826
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
3814
- <metrics statements="99" coveredstatements="91" conditionals="43" coveredconditionals="34" methods="13" coveredmethods="12"/>
3827
+ <metrics statements="100" coveredstatements="92" conditionals="43" coveredconditionals="34" methods="11" coveredmethods="10"/>
3815
3828
  <line num="1" count="2" type="stmt"/>
3816
3829
  <line num="2" count="2" type="stmt"/>
3817
3830
  <line num="3" count="2" type="stmt"/>
@@ -3909,8 +3922,9 @@
3909
3922
  <line num="194" count="10" type="stmt"/>
3910
3923
  <line num="195" count="10" type="stmt"/>
3911
3924
  <line num="196" count="10" type="stmt"/>
3925
+ <line num="197" count="10" type="stmt"/>
3912
3926
  <line num="198" count="8" type="stmt"/>
3913
- <line num="201" count="2" type="stmt"/>
3927
+ <line num="200" count="2" type="stmt"/>
3914
3928
  </file>
3915
3929
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
3916
3930
  <metrics statements="36" coveredstatements="30" conditionals="15" coveredconditionals="10" methods="9" coveredmethods="8"/>