@budibase/worker 2.2.12-alpha.1 → 2.2.12

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 (134) hide show
  1. package/coverage/clover.xml +1238 -1291
  2. package/coverage/coverage-final.json +77 -81
  3. package/coverage/lcov-report/index.html +73 -73
  4. package/coverage/lcov-report/src/api/controllers/global/auth.ts.html +26 -26
  5. package/coverage/lcov-report/src/api/controllers/global/configs.ts.html +212 -155
  6. package/coverage/lcov-report/src/api/controllers/global/email.ts.html +4 -4
  7. package/coverage/lcov-report/src/api/controllers/global/index.html +39 -39
  8. package/coverage/lcov-report/src/api/controllers/global/license.ts.html +7 -7
  9. package/coverage/lcov-report/src/api/controllers/global/roles.ts.html +76 -76
  10. package/coverage/lcov-report/src/api/controllers/global/self.ts.html +14 -14
  11. package/coverage/lcov-report/src/api/controllers/global/templates.ts.html +53 -53
  12. package/coverage/lcov-report/src/api/controllers/global/users.ts.html +27 -27
  13. package/coverage/lcov-report/src/api/controllers/global/workspaces.ts.html +6 -6
  14. package/coverage/lcov-report/src/api/controllers/system/accounts.ts.html +4 -4
  15. package/coverage/lcov-report/src/api/controllers/system/environment.ts.html +3 -3
  16. package/coverage/lcov-report/src/api/controllers/system/index.html +1 -1
  17. package/coverage/lcov-report/src/api/controllers/system/migrations.ts.html +4 -4
  18. package/coverage/lcov-report/src/api/controllers/system/restore.ts.html +4 -4
  19. package/coverage/lcov-report/src/api/controllers/system/status.ts.html +4 -4
  20. package/coverage/lcov-report/src/api/controllers/system/tenants.ts.html +5 -5
  21. package/coverage/lcov-report/src/api/index.html +1 -1
  22. package/coverage/lcov-report/src/api/index.ts.html +23 -23
  23. package/coverage/lcov-report/src/api/routes/global/auth.ts.html +11 -11
  24. package/coverage/lcov-report/src/api/routes/global/configs.ts.html +16 -16
  25. package/coverage/lcov-report/src/api/routes/global/email.ts.html +10 -10
  26. package/coverage/lcov-report/src/api/routes/global/index.html +1 -1
  27. package/coverage/lcov-report/src/api/routes/global/license.ts.html +7 -7
  28. package/coverage/lcov-report/src/api/routes/global/roles.ts.html +7 -7
  29. package/coverage/lcov-report/src/api/routes/global/self.ts.html +8 -8
  30. package/coverage/lcov-report/src/api/routes/global/templates.ts.html +11 -11
  31. package/coverage/lcov-report/src/api/routes/global/users.ts.html +16 -16
  32. package/coverage/lcov-report/src/api/routes/global/workspaces.ts.html +9 -9
  33. package/coverage/lcov-report/src/api/routes/index.html +1 -1
  34. package/coverage/lcov-report/src/api/routes/index.ts.html +19 -19
  35. package/coverage/lcov-report/src/api/routes/system/accounts.ts.html +7 -7
  36. package/coverage/lcov-report/src/api/routes/system/environment.ts.html +6 -6
  37. package/coverage/lcov-report/src/api/routes/system/index.html +1 -1
  38. package/coverage/lcov-report/src/api/routes/system/migrations.ts.html +7 -7
  39. package/coverage/lcov-report/src/api/routes/system/restore.ts.html +6 -6
  40. package/coverage/lcov-report/src/api/routes/system/status.ts.html +6 -6
  41. package/coverage/lcov-report/src/api/routes/system/tenants.ts.html +7 -7
  42. package/coverage/lcov-report/src/api/routes/validation/index.html +1 -1
  43. package/coverage/lcov-report/src/api/routes/validation/index.ts.html +2 -2
  44. package/coverage/lcov-report/src/api/routes/validation/users.ts.html +13 -13
  45. package/coverage/lcov-report/src/constants/index.html +9 -9
  46. package/coverage/lcov-report/src/constants/index.ts.html +49 -73
  47. package/coverage/lcov-report/src/constants/templates/index.html +19 -19
  48. package/coverage/lcov-report/src/constants/templates/index.ts.html +39 -39
  49. package/coverage/lcov-report/src/db/index.html +1 -1
  50. package/coverage/lcov-report/src/db/index.ts.html +8 -8
  51. package/coverage/lcov-report/src/environment.ts.html +22 -37
  52. package/coverage/lcov-report/src/index.html +15 -15
  53. package/coverage/lcov-report/src/index.ts.html +43 -40
  54. package/coverage/lcov-report/src/middleware/cloudRestricted.ts.html +4 -4
  55. package/coverage/lcov-report/src/middleware/index.html +1 -1
  56. package/coverage/lcov-report/src/migrations/functions/globalInfoSyncUsers.ts.html +3 -3
  57. package/coverage/lcov-report/src/migrations/functions/index.html +1 -1
  58. package/coverage/lcov-report/src/migrations/index.html +1 -1
  59. package/coverage/lcov-report/src/migrations/index.ts.html +17 -17
  60. package/coverage/lcov-report/src/sdk/accounts/accounts.ts.html +6 -6
  61. package/coverage/lcov-report/src/sdk/accounts/index.html +1 -1
  62. package/coverage/lcov-report/src/sdk/accounts/index.ts.html +2 -2
  63. package/coverage/lcov-report/src/sdk/index.html +1 -1
  64. package/coverage/lcov-report/src/sdk/index.ts.html +4 -4
  65. package/coverage/lcov-report/src/sdk/users/events.ts.html +46 -46
  66. package/coverage/lcov-report/src/sdk/users/index.html +15 -15
  67. package/coverage/lcov-report/src/sdk/users/index.ts.html +2 -2
  68. package/coverage/lcov-report/src/sdk/users/users.ts.html +97 -148
  69. package/coverage/lcov-report/src/tests/TestConfiguration.ts.html +80 -104
  70. package/coverage/lcov-report/src/tests/api/accounts.ts.html +6 -6
  71. package/coverage/lcov-report/src/tests/api/auth.ts.html +7 -7
  72. package/coverage/lcov-report/src/tests/api/base.ts.html +4 -4
  73. package/coverage/lcov-report/src/tests/api/configs.ts.html +8 -8
  74. package/coverage/lcov-report/src/tests/api/email.ts.html +5 -5
  75. package/coverage/lcov-report/src/tests/api/environment.ts.html +5 -5
  76. package/coverage/lcov-report/src/tests/api/index.html +11 -71
  77. package/coverage/lcov-report/src/tests/api/index.ts.html +28 -61
  78. package/coverage/lcov-report/src/tests/api/migrations.ts.html +6 -6
  79. package/coverage/lcov-report/src/tests/api/restore.ts.html +5 -5
  80. package/coverage/lcov-report/src/tests/api/self.ts.html +6 -6
  81. package/coverage/lcov-report/src/tests/api/status.ts.html +5 -5
  82. package/coverage/lcov-report/src/tests/api/tenants.ts.html +5 -5
  83. package/coverage/lcov-report/src/tests/api/users.ts.html +16 -16
  84. package/coverage/lcov-report/src/tests/controllers.ts.html +6 -6
  85. package/coverage/lcov-report/src/tests/index.html +10 -10
  86. package/coverage/lcov-report/src/tests/index.ts.html +9 -9
  87. package/coverage/lcov-report/src/tests/mocks/{email.ts.html → email.js.html} +5 -5
  88. package/coverage/lcov-report/src/tests/mocks/index.html +2 -2
  89. package/coverage/lcov-report/src/tests/mocks/index.ts.html +7 -7
  90. package/coverage/lcov-report/src/tests/structures/configs.ts.html +10 -10
  91. package/coverage/lcov-report/src/tests/structures/groups.ts.html +15 -15
  92. package/coverage/lcov-report/src/tests/structures/index.html +16 -16
  93. package/coverage/lcov-report/src/tests/structures/index.ts.html +11 -11
  94. package/coverage/lcov-report/src/tests/structures/users.ts.html +11 -11
  95. package/coverage/lcov-report/src/utilities/appService.ts.html +10 -10
  96. package/coverage/lcov-report/src/utilities/email.ts.html +15 -15
  97. package/coverage/lcov-report/src/utilities/fileSystem.ts.html +4 -4
  98. package/coverage/lcov-report/src/utilities/index.html +1 -1
  99. package/coverage/lcov-report/src/utilities/index.ts.html +2 -2
  100. package/coverage/lcov-report/src/utilities/redis.ts.html +12 -12
  101. package/coverage/lcov-report/src/utilities/templates.ts.html +6 -6
  102. package/coverage/lcov-report/src/utilities/users.ts.html +3 -3
  103. package/coverage/lcov.info +1779 -1949
  104. package/jest.config.ts +0 -2
  105. package/package.json +6 -7
  106. package/src/api/controllers/global/configs.ts +131 -112
  107. package/src/api/controllers/global/users.ts +1 -1
  108. package/src/api/routes/global/license.ts +1 -1
  109. package/src/api/routes/global/tests/license.spec.ts +2 -0
  110. package/src/api/routes/global/tests/roles.spec.ts +5 -66
  111. package/src/api/routes/global/tests/templates.spec.ts +9 -89
  112. package/src/api/routes/global/tests/users.spec.ts +2 -2
  113. package/src/constants/index.ts +5 -13
  114. package/src/environment.ts +0 -5
  115. package/src/index.ts +2 -1
  116. package/src/sdk/users/users.ts +1 -18
  117. package/src/tests/TestConfiguration.ts +1 -9
  118. package/src/tests/api/index.ts +1 -12
  119. package/src/tests/jestSetup.ts +1 -3
  120. package/src/tests/mocks/{email.ts → email.js} +1 -1
  121. package/src/tests/mocks/index.ts +3 -3
  122. package/src/tests/structures/configs.ts +2 -2
  123. package/src/tests/structures/groups.ts +1 -1
  124. package/src/tests/structures/users.ts +1 -1
  125. package/tsconfig.json +1 -0
  126. package/coverage/lcov-report/src/tests/api/groups.ts.html +0 -163
  127. package/coverage/lcov-report/src/tests/api/license.ts.html +0 -136
  128. package/coverage/lcov-report/src/tests/api/roles.ts.html +0 -181
  129. package/coverage/lcov-report/src/tests/api/templates.ts.html +0 -175
  130. package/src/api/routes/global/tests/groups.spec.ts +0 -58
  131. package/src/tests/api/groups.ts +0 -26
  132. package/src/tests/api/license.ts +0 -17
  133. package/src/tests/api/roles.ts +0 -32
  134. package/src/tests/api/templates.ts +0 -30
@@ -1,72 +1,70 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1673253059169" clover="3.2.0">
3
- <project timestamp="1673253059169" name="All files">
4
- <metrics statements="1905" coveredstatements="1586" conditionals="639" coveredconditionals="463" methods="443" coveredmethods="349" elements="2987" coveredelements="2398" complexity="0" loc="1905" ncloc="1905" packages="22" files="81" classes="81"/>
2
+ <coverage generated="1673278564241" clover="3.2.0">
3
+ <project timestamp="1673278564241" name="All files">
4
+ <metrics statements="1864" coveredstatements="1493" conditionals="580" coveredconditionals="413" methods="426" coveredmethods="321" elements="2870" coveredelements="2227" complexity="0" loc="1864" ncloc="1864" packages="22" files="77" classes="77"/>
5
5
  <package name="src">
6
- <metrics statements="80" coveredstatements="53" conditionals="27" coveredconditionals="17" methods="16" coveredmethods="7"/>
6
+ <metrics statements="78" coveredstatements="52" conditionals="26" coveredconditionals="17" methods="16" coveredmethods="7"/>
7
7
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/environment.ts">
8
- <metrics statements="21" coveredstatements="16" conditionals="21" coveredconditionals="16" methods="5" coveredmethods="5"/>
9
- <line num="1" count="18" type="stmt"/>
10
- <line num="4" count="55" type="stmt"/>
11
- <line num="8" count="157" type="stmt"/>
12
- <line num="15" count="18" type="stmt"/>
13
- <line num="16" count="18" type="cond" truecount="3" falsecount="1"/>
8
+ <metrics statements="19" coveredstatements="15" conditionals="20" coveredconditionals="16" methods="5" coveredmethods="5"/>
9
+ <line num="1" count="17" type="stmt"/>
10
+ <line num="4" count="52" type="stmt"/>
11
+ <line num="8" count="151" type="stmt"/>
12
+ <line num="15" count="17" type="stmt"/>
13
+ <line num="16" count="17" type="cond" truecount="3" falsecount="1"/>
14
14
  <line num="17" count="0" type="stmt"/>
15
15
  <line num="20" count="0" type="stmt"/>
16
- <line num="24" count="18" type="cond" truecount="0" falsecount="1"/>
16
+ <line num="24" count="17" type="cond" truecount="0" falsecount="1"/>
17
17
  <line num="25" count="0" type="stmt"/>
18
- <line num="29" count="18" type="stmt"/>
19
- <line num="69" count="250" type="stmt"/>
20
- <line num="71" count="250" type="stmt"/>
21
- <line num="76" count="18" type="stmt"/>
22
- <line num="81" count="18" type="cond" truecount="1" falsecount="0"/>
23
- <line num="82" count="18" type="cond" truecount="1" falsecount="1"/>
24
- <line num="88" count="18" type="stmt"/>
25
- <line num="90" count="630" type="cond" truecount="0" falsecount="1"/>
18
+ <line num="29" count="17" type="stmt"/>
19
+ <line num="69" count="237" type="stmt"/>
20
+ <line num="71" count="237" type="stmt"/>
21
+ <line num="76" count="17" type="stmt"/>
22
+ <line num="81" count="17" type="cond" truecount="1" falsecount="0"/>
23
+ <line num="82" count="17" type="cond" truecount="1" falsecount="1"/>
24
+ <line num="88" count="17" type="stmt"/>
25
+ <line num="90" count="595" type="cond" truecount="0" falsecount="1"/>
26
26
  <line num="92" count="0" type="stmt"/>
27
- <line num="95" count="630" type="cond" truecount="0" falsecount="1"/>
28
- <line num="97" count="0" type="stmt"/>
29
- <line num="101" count="18" type="stmt"/>
27
+ <line num="96" count="17" type="stmt"/>
30
28
  </file>
31
29
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/index.ts">
32
30
  <metrics statements="59" coveredstatements="37" conditionals="6" coveredconditionals="1" methods="11" coveredmethods="2"/>
33
- <line num="2" count="18" type="stmt"/>
34
- <line num="5" count="18" type="cond" truecount="0" falsecount="1"/>
31
+ <line num="2" count="17" type="stmt"/>
32
+ <line num="5" count="17" type="cond" truecount="0" falsecount="1"/>
35
33
  <line num="6" count="0" type="stmt"/>
36
- <line num="15" count="18" type="stmt"/>
37
- <line num="16" count="18" type="stmt"/>
38
- <line num="17" count="18" type="stmt"/>
39
- <line num="18" count="18" type="stmt"/>
40
- <line num="19" count="18" type="stmt"/>
41
- <line num="20" count="18" type="stmt"/>
42
- <line num="21" count="18" type="stmt"/>
43
- <line num="22" count="18" type="stmt"/>
44
- <line num="23" count="18" type="stmt"/>
45
- <line num="24" count="18" type="stmt"/>
46
- <line num="25" count="18" type="stmt"/>
47
- <line num="26" count="18" type="stmt"/>
48
- <line num="27" count="18" type="stmt"/>
49
- <line num="30" count="18" type="stmt"/>
50
- <line num="32" count="18" type="stmt"/>
51
- <line num="34" count="18" type="stmt"/>
52
- <line num="37" count="18" type="stmt"/>
53
- <line num="38" count="18" type="stmt"/>
54
- <line num="39" count="18" type="stmt"/>
55
- <line num="42" count="18" type="stmt"/>
56
- <line num="43" count="18" type="stmt"/>
57
- <line num="46" count="18" type="stmt"/>
58
- <line num="49" count="18" type="cond" truecount="0" falsecount="1"/>
34
+ <line num="15" count="17" type="stmt"/>
35
+ <line num="16" count="17" type="stmt"/>
36
+ <line num="17" count="17" type="stmt"/>
37
+ <line num="18" count="17" type="stmt"/>
38
+ <line num="19" count="17" type="stmt"/>
39
+ <line num="20" count="17" type="stmt"/>
40
+ <line num="21" count="17" type="stmt"/>
41
+ <line num="22" count="17" type="stmt"/>
42
+ <line num="23" count="17" type="stmt"/>
43
+ <line num="24" count="17" type="stmt"/>
44
+ <line num="25" count="17" type="stmt"/>
45
+ <line num="26" count="17" type="stmt"/>
46
+ <line num="27" count="17" type="stmt"/>
47
+ <line num="30" count="17" type="stmt"/>
48
+ <line num="32" count="17" type="stmt"/>
49
+ <line num="34" count="17" type="stmt"/>
50
+ <line num="37" count="17" type="stmt"/>
51
+ <line num="38" count="17" type="stmt"/>
52
+ <line num="39" count="17" type="stmt"/>
53
+ <line num="42" count="17" type="stmt"/>
54
+ <line num="43" count="17" type="stmt"/>
55
+ <line num="46" count="17" type="stmt"/>
56
+ <line num="49" count="17" type="cond" truecount="0" falsecount="1"/>
59
57
  <line num="50" count="0" type="stmt"/>
60
58
  <line num="52" count="0" type="stmt"/>
61
59
  <line num="53" count="0" type="stmt"/>
62
60
  <line num="54" count="0" type="stmt"/>
63
61
  <line num="55" count="0" type="stmt"/>
64
62
  <line num="57" count="0" type="stmt"/>
65
- <line num="62" count="18" type="stmt"/>
66
- <line num="63" count="18" type="stmt"/>
67
- <line num="65" count="18" type="stmt"/>
68
- <line num="66" count="18" type="stmt"/>
69
- <line num="67" count="18" type="stmt"/>
63
+ <line num="62" count="17" type="stmt"/>
64
+ <line num="63" count="17" type="stmt"/>
65
+ <line num="65" count="17" type="stmt"/>
66
+ <line num="66" count="17" type="stmt"/>
67
+ <line num="67" count="17" type="stmt"/>
70
68
  <line num="68" count="0" type="cond" truecount="0" falsecount="1"/>
71
69
  <line num="69" count="0" type="stmt"/>
72
70
  <line num="71" count="0" type="stmt"/>
@@ -75,75 +73,75 @@
75
73
  <line num="74" count="0" type="stmt"/>
76
74
  <line num="75" count="0" type="cond" truecount="0" falsecount="1"/>
77
75
  <line num="76" count="0" type="stmt"/>
78
- <line num="80" count="18" type="stmt"/>
76
+ <line num="80" count="17" type="stmt"/>
79
77
  <line num="81" count="0" type="stmt"/>
80
- <line num="82" count="0" type="stmt"/>
81
- <line num="85" count="18" type="cond" truecount="1" falsecount="1"/>
82
- <line num="86" count="18" type="stmt"/>
83
- <line num="87" count="18" type="stmt"/>
84
- <line num="90" count="18" type="stmt"/>
85
- <line num="91" count="0" type="stmt"/>
78
+ <line num="83" count="0" type="stmt"/>
79
+ <line num="86" count="17" type="cond" truecount="1" falsecount="1"/>
80
+ <line num="87" count="17" type="stmt"/>
81
+ <line num="88" count="17" type="stmt"/>
82
+ <line num="91" count="17" type="stmt"/>
86
83
  <line num="92" count="0" type="stmt"/>
87
84
  <line num="93" count="0" type="stmt"/>
88
- <line num="96" count="18" type="stmt"/>
89
- <line num="97" count="0" type="stmt"/>
90
- <line num="100" count="18" type="stmt"/>
91
- <line num="101" count="0" type="stmt"/>
85
+ <line num="94" count="0" type="stmt"/>
86
+ <line num="97" count="17" type="stmt"/>
87
+ <line num="98" count="0" type="stmt"/>
88
+ <line num="101" count="17" type="stmt"/>
89
+ <line num="102" count="0" type="stmt"/>
92
90
  </file>
93
91
  </package>
94
92
  <package name="src.api">
95
93
  <metrics statements="30" coveredstatements="29" conditionals="9" coveredconditionals="7" methods="5" coveredmethods="3"/>
96
94
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/index.ts">
97
95
  <metrics statements="30" coveredstatements="29" conditionals="9" coveredconditionals="7" methods="5" coveredmethods="3"/>
98
- <line num="1" count="18" type="stmt"/>
99
- <line num="2" count="18" type="stmt"/>
100
- <line num="3" count="18" type="stmt"/>
101
- <line num="4" count="18" type="stmt"/>
102
- <line num="5" count="18" type="stmt"/>
103
- <line num="6" count="18" type="stmt"/>
104
- <line num="9" count="18" type="stmt"/>
105
- <line num="67" count="18" type="stmt"/>
106
- <line num="105" count="18" type="stmt"/>
107
- <line num="107" count="18" type="stmt"/>
108
- <line num="108" count="18" type="stmt"/>
96
+ <line num="1" count="17" type="stmt"/>
97
+ <line num="2" count="17" type="stmt"/>
98
+ <line num="3" count="17" type="stmt"/>
99
+ <line num="4" count="17" type="stmt"/>
100
+ <line num="5" count="17" type="stmt"/>
101
+ <line num="6" count="17" type="stmt"/>
102
+ <line num="9" count="17" type="stmt"/>
103
+ <line num="67" count="17" type="stmt"/>
104
+ <line num="105" count="17" type="stmt"/>
105
+ <line num="107" count="17" type="stmt"/>
106
+ <line num="108" count="17" type="stmt"/>
109
107
  <line num="121" count="0" type="stmt"/>
110
- <line num="128" count="123" type="cond" truecount="1" falsecount="0"/>
108
+ <line num="128" count="109" type="cond" truecount="1" falsecount="0"/>
111
109
  <line num="129" count="24" type="stmt"/>
112
- <line num="131" count="99" type="cond" truecount="1" falsecount="0"/>
110
+ <line num="131" count="85" type="cond" truecount="1" falsecount="0"/>
113
111
  <line num="135" count="2" type="stmt"/>
114
- <line num="137" count="97" type="stmt"/>
115
- <line num="142" count="121" type="stmt"/>
116
- <line num="143" count="121" type="stmt"/>
117
- <line num="144" count="121" type="stmt"/>
112
+ <line num="137" count="83" type="stmt"/>
113
+ <line num="142" count="107" type="stmt"/>
114
+ <line num="143" count="107" type="stmt"/>
115
+ <line num="144" count="107" type="stmt"/>
118
116
  <line num="146" count="14" type="stmt"/>
119
117
  <line num="147" count="14" type="cond" truecount="1" falsecount="2"/>
120
118
  <line num="148" count="14" type="stmt"/>
121
119
  <line num="149" count="14" type="stmt"/>
122
120
  <line num="154" count="14" type="stmt"/>
123
- <line num="158" count="18" type="stmt"/>
124
- <line num="161" count="18" type="stmt"/>
125
- <line num="162" count="288" type="stmt"/>
126
- <line num="163" count="288" type="stmt"/>
127
- <line num="166" count="18" type="stmt"/>
121
+ <line num="158" count="17" type="stmt"/>
122
+ <line num="161" count="17" type="stmt"/>
123
+ <line num="162" count="272" type="stmt"/>
124
+ <line num="163" count="272" type="stmt"/>
125
+ <line num="166" count="17" type="stmt"/>
128
126
  </file>
129
127
  </package>
130
128
  <package name="src.api.controllers.global">
131
- <metrics statements="596" coveredstatements="394" conditionals="174" coveredconditionals="101" methods="137" coveredmethods="77"/>
129
+ <metrics statements="608" coveredstatements="360" conditionals="172" coveredconditionals="92" methods="137" coveredmethods="69"/>
132
130
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/auth.ts">
133
131
  <metrics statements="122" coveredstatements="75" conditionals="22" coveredconditionals="8" methods="41" coveredmethods="20"/>
134
- <line num="1" count="18" type="stmt"/>
135
- <line num="11" count="18" type="stmt"/>
136
- <line num="12" count="18" type="stmt"/>
137
- <line num="13" count="18" type="stmt"/>
138
- <line num="14" count="18" type="stmt"/>
139
- <line num="15" count="18" type="stmt"/>
140
- <line num="16" count="18" type="stmt"/>
141
- <line num="18" count="18" type="stmt"/>
142
- <line num="19" count="18" type="stmt"/>
143
- <line num="20" count="18" type="stmt"/>
144
- <line num="22" count="18" type="stmt"/>
132
+ <line num="1" count="17" type="stmt"/>
133
+ <line num="11" count="17" type="stmt"/>
134
+ <line num="12" count="17" type="stmt"/>
135
+ <line num="13" count="17" type="stmt"/>
136
+ <line num="14" count="17" type="stmt"/>
137
+ <line num="15" count="17" type="stmt"/>
138
+ <line num="16" count="17" type="stmt"/>
139
+ <line num="18" count="17" type="stmt"/>
140
+ <line num="19" count="17" type="stmt"/>
141
+ <line num="20" count="17" type="stmt"/>
142
+ <line num="22" count="17" type="stmt"/>
145
143
  <line num="23" count="0" type="stmt"/>
146
- <line num="26" count="18" type="stmt"/>
144
+ <line num="26" count="17" type="stmt"/>
147
145
  <line num="27" count="3" type="stmt"/>
148
146
  <line num="31" count="1" type="cond" truecount="0" falsecount="1"/>
149
147
  <line num="32" count="0" type="stmt"/>
@@ -154,23 +152,23 @@
154
152
  <line num="43" count="1" type="stmt"/>
155
153
  <line num="46" count="1" type="cond" truecount="0" falsecount="1"/>
156
154
  <line num="47" count="0" type="stmt"/>
157
- <line num="51" count="18" type="stmt"/>
155
+ <line num="51" count="17" type="stmt"/>
158
156
  <line num="52" count="0" type="stmt"/>
159
157
  <line num="54" count="0" type="stmt"/>
160
158
  <line num="55" count="0" type="stmt"/>
161
159
  <line num="56" count="0" type="stmt"/>
162
160
  <line num="57" count="0" type="stmt"/>
163
161
  <line num="59" count="0" type="stmt"/>
164
- <line num="64" count="18" type="stmt"/>
162
+ <line num="64" count="17" type="stmt"/>
165
163
  <line num="65" count="0" type="stmt"/>
166
164
  <line num="66" count="0" type="stmt"/>
167
165
  <line num="67" count="0" type="stmt"/>
168
- <line num="70" count="18" type="stmt"/>
166
+ <line num="70" count="17" type="stmt"/>
169
167
  <line num="71" count="0" type="stmt"/>
170
168
  <line num="72" count="0" type="cond" truecount="0" falsecount="2"/>
171
169
  <line num="74" count="0" type="stmt"/>
172
170
  <line num="75" count="0" type="stmt"/>
173
- <line num="82" count="18" type="stmt"/>
171
+ <line num="82" count="17" type="stmt"/>
174
172
  <line num="83" count="2" type="stmt"/>
175
173
  <line num="84" count="2" type="stmt"/>
176
174
  <line num="85" count="2" type="cond" truecount="0" falsecount="1"/>
@@ -182,7 +180,7 @@
182
180
  <line num="99" count="2" type="stmt"/>
183
181
  <line num="102" count="0" type="stmt"/>
184
182
  <line num="105" count="2" type="stmt"/>
185
- <line num="113" count="18" type="stmt"/>
183
+ <line num="113" count="17" type="stmt"/>
186
184
  <line num="114" count="1" type="stmt"/>
187
185
  <line num="115" count="1" type="stmt"/>
188
186
  <line num="116" count="1" type="stmt"/>
@@ -195,29 +193,29 @@
195
193
  <line num="126" count="1" type="stmt"/>
196
194
  <line num="128" count="0" type="stmt"/>
197
195
  <line num="129" count="0" type="stmt"/>
198
- <line num="133" count="18" type="stmt"/>
196
+ <line num="133" count="17" type="stmt"/>
199
197
  <line num="134" count="1" type="cond" truecount="3" falsecount="0"/>
200
198
  <line num="135" count="1" type="stmt"/>
201
199
  <line num="137" count="1" type="stmt"/>
202
- <line num="140" count="18" type="stmt"/>
200
+ <line num="140" count="17" type="stmt"/>
203
201
  <line num="141" count="0" type="stmt"/>
204
202
  <line num="142" count="0" type="stmt"/>
205
203
  <line num="143" count="0" type="stmt"/>
206
204
  <line num="145" count="0" type="stmt"/>
207
205
  <line num="155" count="0" type="stmt"/>
208
- <line num="158" count="18" type="stmt"/>
206
+ <line num="158" count="17" type="stmt"/>
209
207
  <line num="159" count="0" type="stmt"/>
210
208
  <line num="160" count="0" type="stmt"/>
211
209
  <line num="161" count="0" type="stmt"/>
212
210
  <line num="162" count="0" type="stmt"/>
213
211
  <line num="163" count="0" type="stmt"/>
214
- <line num="170" count="18" type="stmt"/>
212
+ <line num="170" count="17" type="stmt"/>
215
213
  <line num="171" count="0" type="stmt"/>
216
214
  <line num="173" count="0" type="stmt"/>
217
215
  <line num="177" count="0" type="stmt"/>
218
216
  <line num="178" count="0" type="stmt"/>
219
217
  <line num="184" count="0" type="stmt"/>
220
- <line num="191" count="18" type="stmt"/>
218
+ <line num="191" count="17" type="stmt"/>
221
219
  <line num="192" count="0" type="stmt"/>
222
220
  <line num="194" count="0" type="stmt"/>
223
221
  <line num="198" count="0" type="stmt"/>
@@ -228,14 +226,14 @@
228
226
  <line num="210" count="0" type="stmt"/>
229
227
  <line num="211" count="0" type="stmt"/>
230
228
  <line num="213" count="0" type="stmt"/>
231
- <line num="218" count="18" type="stmt"/>
229
+ <line num="218" count="17" type="stmt"/>
232
230
  <line num="219" count="3" type="stmt"/>
233
231
  <line num="220" count="3" type="stmt"/>
234
232
  <line num="225" count="3" type="stmt"/>
235
233
  <line num="226" count="3" type="stmt"/>
236
234
  <line num="229" count="3" type="stmt"/>
237
235
  <line num="233" count="3" type="stmt"/>
238
- <line num="240" count="18" type="stmt"/>
236
+ <line num="240" count="17" type="stmt"/>
239
237
  <line num="241" count="2" type="stmt"/>
240
238
  <line num="242" count="2" type="stmt"/>
241
239
  <line num="244" count="2" type="stmt"/>
@@ -244,7 +242,7 @@
244
242
  <line num="252" count="2" type="stmt"/>
245
243
  <line num="255" count="2" type="cond" truecount="4" falsecount="2"/>
246
244
  <line num="259" count="2" type="stmt"/>
247
- <line num="265" count="18" type="stmt"/>
245
+ <line num="265" count="17" type="stmt"/>
248
246
  <line num="266" count="1" type="stmt"/>
249
247
  <line num="267" count="1" type="stmt"/>
250
248
  <line num="269" count="1" type="stmt"/>
@@ -255,180 +253,192 @@
255
253
  <line num="277" count="1" type="stmt"/>
256
254
  </file>
257
255
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/configs.ts">
258
- <metrics statements="167" coveredstatements="112" conditionals="94" coveredconditionals="63" methods="25" coveredmethods="18"/>
259
- <line num="1" count="18" type="stmt"/>
260
- <line num="2" count="18" type="stmt"/>
261
- <line num="3" count="18" type="stmt"/>
262
- <line num="4" count="18" type="stmt"/>
263
- <line num="12" count="18" type="stmt"/>
264
- <line num="13" count="18" type="stmt"/>
265
- <line num="29" count="41" type="stmt"/>
266
- <line num="30" count="41" type="stmt"/>
267
- <line num="33" count="41" type="cond" truecount="1" falsecount="0"/>
268
- <line num="34" count="6" type="stmt"/>
269
- <line num="37" count="41" type="cond" truecount="2" falsecount="0"/>
270
- <line num="38" count="35" type="cond" truecount="2" falsecount="0"/>
271
- <line num="39" count="14" type="stmt"/>
272
- <line num="40" count="21" type="cond" truecount="2" falsecount="0"/>
256
+ <metrics statements="179" coveredstatements="122" conditionals="92" coveredconditionals="57" methods="25" coveredmethods="18"/>
257
+ <line num="1" count="17" type="stmt"/>
258
+ <line num="2" count="17" type="stmt"/>
259
+ <line num="3" count="17" type="stmt"/>
260
+ <line num="4" count="17" type="stmt"/>
261
+ <line num="11" count="17" type="stmt"/>
262
+ <line num="12" count="17" type="stmt"/>
263
+ <line num="23" count="41" type="stmt"/>
264
+ <line num="24" count="41" type="stmt"/>
265
+ <line num="25" count="41" type="stmt"/>
266
+ <line num="28" count="41" type="cond" truecount="1" falsecount="0"/>
267
+ <line num="29" count="6" type="stmt"/>
268
+ <line num="32" count="41" type="stmt"/>
269
+ <line num="33" count="41" type="cond" truecount="2" falsecount="0"/>
270
+ <line num="34" count="35" type="cond" truecount="4" falsecount="0"/>
271
+ <line num="36" count="14" type="stmt"/>
272
+ <line num="37" count="14" type="stmt"/>
273
+ <line num="40" count="4" type="stmt"/>
273
274
  <line num="41" count="4" type="stmt"/>
274
275
  <line num="42" count="4" type="cond" truecount="1" falsecount="0"/>
275
276
  <line num="43" count="2" type="stmt"/>
276
- <line num="45" count="17" type="cond" truecount="2" falsecount="0"/>
277
- <line num="46" count="6" type="stmt"/>
278
- <line num="47" count="6" type="cond" truecount="1" falsecount="0"/>
279
- <line num="48" count="4" type="stmt"/>
280
- <line num="50" count="11" type="cond" truecount="1" falsecount="0"/>
281
- <line num="52" count="11" type="stmt"/>
282
- <line num="53" count="11" type="cond" truecount="3" falsecount="0"/>
283
- <line num="54" count="1" type="stmt"/>
277
+ <line num="45" count="4" type="stmt"/>
278
+ <line num="48" count="6" type="stmt"/>
279
+ <line num="49" count="6" type="stmt"/>
280
+ <line num="50" count="6" type="cond" truecount="1" falsecount="0"/>
281
+ <line num="51" count="4" type="stmt"/>
282
+ <line num="53" count="6" type="stmt"/>
283
+ <line num="57" count="11" type="stmt"/>
284
284
  <line num="58" count="11" type="stmt"/>
285
- <line num="59" count="11" type="cond" truecount="1" falsecount="0"/>
285
+ <line num="59" count="11" type="cond" truecount="3" falsecount="0"/>
286
286
  <line num="60" count="1" type="stmt"/>
287
287
  <line num="64" count="11" type="stmt"/>
288
288
  <line num="65" count="11" type="cond" truecount="1" falsecount="0"/>
289
- <line num="70" count="1" type="stmt"/>
290
- <line num="74" count="6" type="cond" truecount="2" falsecount="0"/>
291
- <line num="75" count="1" type="stmt"/>
292
- <line num="76" count="5" type="cond" truecount="2" falsecount="0"/>
293
- <line num="77" count="2" type="stmt"/>
294
- <line num="78" count="2" type="cond" truecount="4" falsecount="0"/>
295
- <line num="79" count="1" type="stmt"/>
296
- <line num="80" count="1" type="cond" truecount="3" falsecount="0"/>
297
- <line num="81" count="1" type="stmt"/>
298
- <line num="83" count="3" type="cond" truecount="2" falsecount="0"/>
299
- <line num="84" count="2" type="stmt"/>
300
- <line num="85" count="2" type="cond" truecount="2" falsecount="0"/>
301
- <line num="89" count="1" type="stmt"/>
302
- <line num="90" count="1" type="cond" truecount="1" falsecount="0"/>
303
- <line num="94" count="1" type="stmt"/>
304
- <line num="96" count="1" type="cond" truecount="1" falsecount="0"/>
305
- <line num="98" count="1" type="stmt"/>
306
- <line num="99" count="1" type="stmt"/>
307
- <line num="100" count="1" type="cond" truecount="4" falsecount="0"/>
308
- <line num="101" count="1" type="stmt"/>
309
- <line num="105" count="1" type="stmt"/>
310
- <line num="106" count="1" type="stmt"/>
311
- <line num="107" count="1" type="cond" truecount="3" falsecount="0"/>
312
- <line num="108" count="1" type="stmt"/>
313
- <line num="112" count="1" type="stmt"/>
314
- <line num="113" count="1" type="stmt"/>
315
- <line num="114" count="1" type="cond" truecount="1" falsecount="0"/>
316
- <line num="120" count="1" type="stmt"/>
317
- <line num="125" count="41" type="stmt"/>
318
- <line num="128" count="18" type="stmt"/>
319
- <line num="129" count="41" type="stmt"/>
320
- <line num="130" count="41" type="stmt"/>
321
- <line num="131" count="41" type="stmt"/>
322
- <line num="133" count="41" type="cond" truecount="1" falsecount="0"/>
323
- <line num="134" count="35" type="stmt"/>
324
- <line num="140" count="41" type="stmt"/>
325
- <line num="142" count="41" type="cond" truecount="1" falsecount="0"/>
326
- <line num="144" count="15" type="stmt"/>
327
- <line num="145" count="12" type="stmt"/>
328
- <line num="148" count="3" type="stmt"/>
329
- <line num="151" count="38" type="stmt"/>
330
- <line num="152" count="38" type="stmt"/>
331
- <line num="153" count="38" type="stmt"/>
332
- <line num="154" count="38" type="stmt"/>
333
- <line num="156" count="38" type="stmt"/>
334
- <line num="157" count="42" type="stmt"/>
335
- <line num="160" count="38" type="stmt"/>
336
- <line num="166" count="0" type="stmt"/>
337
- <line num="170" count="18" type="stmt"/>
338
- <line num="171" count="0" type="stmt"/>
339
- <line num="172" count="0" type="stmt"/>
340
- <line num="180" count="0" type="stmt"/>
341
- <line num="187" count="18" type="stmt"/>
342
- <line num="188" count="36" type="stmt"/>
343
- <line num="190" count="36" type="stmt"/>
344
- <line num="191" count="36" type="cond" truecount="1" falsecount="2"/>
289
+ <line num="66" count="1" type="stmt"/>
290
+ <line num="70" count="11" type="stmt"/>
291
+ <line num="71" count="11" type="cond" truecount="1" falsecount="0"/>
292
+ <line num="76" count="1" type="stmt"/>
293
+ <line num="78" count="11" type="stmt"/>
294
+ <line num="82" count="6" type="cond" truecount="4" falsecount="0"/>
295
+ <line num="84" count="1" type="stmt"/>
296
+ <line num="85" count="1" type="stmt"/>
297
+ <line num="88" count="2" type="stmt"/>
298
+ <line num="89" count="2" type="stmt"/>
299
+ <line num="90" count="2" type="cond" truecount="4" falsecount="0"/>
300
+ <line num="91" count="1" type="stmt"/>
301
+ <line num="92" count="1" type="cond" truecount="3" falsecount="0"/>
302
+ <line num="93" count="1" type="stmt"/>
303
+ <line num="95" count="2" type="stmt"/>
304
+ <line num="98" count="2" type="stmt"/>
305
+ <line num="99" count="2" type="stmt"/>
306
+ <line num="100" count="2" type="cond" truecount="2" falsecount="0"/>
307
+ <line num="104" count="1" type="stmt"/>
308
+ <line num="105" count="1" type="cond" truecount="1" falsecount="0"/>
309
+ <line num="109" count="1" type="stmt"/>
310
+ <line num="111" count="2" type="stmt"/>
311
+ <line num="115" count="1" type="stmt"/>
312
+ <line num="116" count="1" type="stmt"/>
313
+ <line num="117" count="1" type="stmt"/>
314
+ <line num="118" count="1" type="cond" truecount="4" falsecount="0"/>
315
+ <line num="119" count="1" type="stmt"/>
316
+ <line num="123" count="1" type="stmt"/>
317
+ <line num="124" count="1" type="stmt"/>
318
+ <line num="125" count="1" type="cond" truecount="3" falsecount="0"/>
319
+ <line num="126" count="1" type="stmt"/>
320
+ <line num="130" count="1" type="stmt"/>
321
+ <line num="131" count="1" type="stmt"/>
322
+ <line num="132" count="1" type="cond" truecount="1" falsecount="0"/>
323
+ <line num="138" count="1" type="stmt"/>
324
+ <line num="140" count="1" type="stmt"/>
325
+ <line num="145" count="41" type="stmt"/>
326
+ <line num="148" count="17" type="stmt"/>
327
+ <line num="149" count="41" type="stmt"/>
328
+ <line num="150" count="41" type="stmt"/>
329
+ <line num="151" count="41" type="stmt"/>
330
+ <line num="153" count="41" type="cond" truecount="1" falsecount="0"/>
331
+ <line num="154" count="35" type="stmt"/>
332
+ <line num="160" count="41" type="stmt"/>
333
+ <line num="162" count="41" type="cond" truecount="1" falsecount="0"/>
334
+ <line num="164" count="15" type="stmt"/>
335
+ <line num="165" count="12" type="stmt"/>
336
+ <line num="168" count="3" type="stmt"/>
337
+ <line num="171" count="38" type="stmt"/>
338
+ <line num="172" count="38" type="stmt"/>
339
+ <line num="173" count="38" type="stmt"/>
340
+ <line num="174" count="38" type="stmt"/>
341
+ <line num="176" count="38" type="stmt"/>
342
+ <line num="177" count="42" type="stmt"/>
343
+ <line num="180" count="38" type="stmt"/>
344
+ <line num="186" count="0" type="stmt"/>
345
+ <line num="190" count="17" type="stmt"/>
346
+ <line num="191" count="0" type="stmt"/>
345
347
  <line num="192" count="0" type="stmt"/>
346
- <line num="193" count="0" type="stmt"/>
347
- <line num="194" count="0" type="stmt"/>
348
- <line num="196" count="0" type="cond" truecount="0" falsecount="3"/>
349
- <line num="197" count="0" type="stmt"/>
350
- <line num="201" count="36" type="stmt"/>
351
- <line num="203" count="36" type="stmt"/>
352
- <line num="209" count="36" type="cond" truecount="2" falsecount="0"/>
353
- <line num="210" count="27" type="stmt"/>
354
- <line num="213" count="9" type="stmt"/>
355
- <line num="216" count="0" type="cond" truecount="0" falsecount="6"/>
356
- <line num="220" count="18" type="stmt"/>
357
- <line num="221" count="0" type="stmt"/>
358
- <line num="222" count="0" type="stmt"/>
359
- <line num="224" count="0" type="stmt"/>
360
- <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
361
- <line num="229" count="0" type="stmt"/>
362
- <line num="231" count="0" type="stmt"/>
363
- <line num="238" count="0" type="stmt"/>
364
- <line num="242" count="18" type="stmt"/>
365
- <line num="243" count="0" type="stmt"/>
366
- <line num="245" count="0" type="stmt"/>
367
- <line num="247" count="0" type="stmt"/>
348
+ <line num="200" count="0" type="stmt"/>
349
+ <line num="207" count="17" type="stmt"/>
350
+ <line num="208" count="36" type="stmt"/>
351
+ <line num="210" count="36" type="stmt"/>
352
+ <line num="211" count="36" type="cond" truecount="1" falsecount="2"/>
353
+ <line num="212" count="0" type="stmt"/>
354
+ <line num="213" count="0" type="stmt"/>
355
+ <line num="214" count="0" type="stmt"/>
356
+ <line num="216" count="0" type="cond" truecount="0" falsecount="3"/>
357
+ <line num="217" count="0" type="stmt"/>
358
+ <line num="221" count="36" type="stmt"/>
359
+ <line num="223" count="36" type="stmt"/>
360
+ <line num="229" count="36" type="cond" truecount="2" falsecount="0"/>
361
+ <line num="230" count="27" type="stmt"/>
362
+ <line num="233" count="9" type="stmt"/>
363
+ <line num="236" count="0" type="cond" truecount="0" falsecount="6"/>
364
+ <line num="240" count="17" type="stmt"/>
365
+ <line num="241" count="0" type="stmt"/>
366
+ <line num="242" count="0" type="stmt"/>
367
+ <line num="244" count="0" type="stmt"/>
368
+ <line num="248" count="0" type="cond" truecount="0" falsecount="2"/>
369
+ <line num="249" count="0" type="stmt"/>
368
370
  <line num="251" count="0" type="stmt"/>
369
- <line num="255" count="0" type="stmt"/>
370
- <line num="260" count="0" type="cond" truecount="0" falsecount="2"/>
371
- <line num="261" count="0" type="stmt"/>
371
+ <line num="258" count="0" type="stmt"/>
372
+ <line num="262" count="17" type="stmt"/>
373
+ <line num="263" count="0" type="stmt"/>
372
374
  <line num="265" count="0" type="stmt"/>
373
- <line num="270" count="0" type="cond" truecount="0" falsecount="1"/>
375
+ <line num="267" count="0" type="stmt"/>
374
376
  <line num="271" count="0" type="stmt"/>
375
- <line num="279" count="0" type="cond" truecount="0" falsecount="4"/>
377
+ <line num="275" count="0" type="stmt"/>
378
+ <line num="280" count="0" type="cond" truecount="0" falsecount="2"/>
376
379
  <line num="281" count="0" type="stmt"/>
377
- <line num="284" count="0" type="stmt"/>
378
- <line num="288" count="0" type="stmt"/>
379
- <line num="289" count="0" type="stmt"/>
380
- <line num="292" count="0" type="cond" truecount="0" falsecount="4"/>
381
- <line num="293" count="0" type="stmt"/>
382
- <line num="295" count="0" type="stmt"/>
380
+ <line num="285" count="0" type="stmt"/>
381
+ <line num="289" count="0" type="cond" truecount="0" falsecount="4"/>
382
+ <line num="291" count="0" type="stmt"/>
383
+ <line num="294" count="0" type="stmt"/>
383
384
  <line num="298" count="0" type="stmt"/>
384
- <line num="300" count="0" type="stmt"/>
385
- <line num="304" count="18" type="stmt"/>
386
- <line num="305" count="0" type="cond" truecount="0" falsecount="3"/>
387
- <line num="306" count="0" type="stmt"/>
385
+ <line num="299" count="0" type="stmt"/>
386
+ <line num="302" count="0" type="cond" truecount="0" falsecount="4"/>
387
+ <line num="303" count="0" type="stmt"/>
388
+ <line num="305" count="0" type="stmt"/>
388
389
  <line num="308" count="0" type="stmt"/>
389
- <line num="309" count="0" type="stmt"/>
390
- <line num="311" count="0" type="stmt"/>
391
- <line num="312" count="0" type="stmt"/>
392
- <line num="314" count="0" type="stmt"/>
390
+ <line num="310" count="0" type="stmt"/>
391
+ <line num="314" count="17" type="stmt"/>
392
+ <line num="315" count="0" type="cond" truecount="0" falsecount="3"/>
393
+ <line num="316" count="0" type="stmt"/>
394
+ <line num="318" count="0" type="stmt"/>
395
+ <line num="319" count="0" type="stmt"/>
396
+ <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
393
397
  <line num="323" count="0" type="stmt"/>
394
- <line num="324" count="0" type="stmt"/>
395
- <line num="325" count="0" type="cond" truecount="0" falsecount="1"/>
396
- <line num="326" count="0" type="stmt"/>
397
- <line num="333" count="0" type="stmt"/>
398
- <line num="334" count="0" type="cond" truecount="0" falsecount="1"/>
398
+ <line num="325" count="0" type="stmt"/>
399
+ <line num="329" count="0" type="cond" truecount="0" falsecount="2"/>
400
+ <line num="330" count="0" type="stmt"/>
401
+ <line num="332" count="0" type="stmt"/>
399
402
  <line num="335" count="0" type="stmt"/>
400
- <line num="339" count="0" type="stmt"/>
401
- <line num="342" count="0" type="stmt"/>
402
403
  <line num="344" count="0" type="stmt"/>
403
- <line num="350" count="18" type="stmt"/>
404
- <line num="351" count="36" type="stmt"/>
405
- <line num="352" count="36" type="stmt"/>
406
- <line num="353" count="36" type="stmt"/>
407
- <line num="354" count="36" type="stmt"/>
408
- <line num="355" count="23" type="stmt"/>
409
- <line num="356" count="23" type="stmt"/>
410
- <line num="358" count="13" type="stmt"/>
411
- <line num="362" count="18" type="stmt"/>
412
- <line num="363" count="4" type="stmt"/>
413
- <line num="364" count="4" type="stmt"/>
414
- <line num="366" count="4" type="stmt"/>
415
- <line num="367" count="4" type="stmt"/>
416
- <line num="370" count="4" type="stmt"/>
417
- <line num="371" count="4" type="stmt"/>
418
- <line num="372" count="4" type="cond" truecount="3" falsecount="0"/>
419
- <line num="374" count="4" type="stmt"/>
420
- <line num="378" count="4" type="stmt"/>
404
+ <line num="345" count="0" type="stmt"/>
405
+ <line num="346" count="0" type="cond" truecount="0" falsecount="1"/>
406
+ <line num="347" count="0" type="stmt"/>
407
+ <line num="353" count="0" type="cond" truecount="0" falsecount="2"/>
408
+ <line num="354" count="0" type="stmt"/>
409
+ <line num="356" count="0" type="stmt"/>
410
+ <line num="359" count="0" type="stmt"/>
411
+ <line num="361" count="0" type="stmt"/>
412
+ <line num="363" count="0" type="stmt"/>
413
+ <line num="369" count="17" type="stmt"/>
414
+ <line num="370" count="36" type="stmt"/>
415
+ <line num="371" count="36" type="stmt"/>
416
+ <line num="372" count="36" type="stmt"/>
417
+ <line num="373" count="36" type="stmt"/>
418
+ <line num="374" count="23" type="stmt"/>
419
+ <line num="375" count="23" type="stmt"/>
420
+ <line num="377" count="13" type="stmt"/>
421
+ <line num="381" count="17" type="stmt"/>
422
+ <line num="382" count="4" type="stmt"/>
421
423
  <line num="383" count="4" type="stmt"/>
422
- <line num="388" count="4" type="stmt"/>
424
+ <line num="385" count="4" type="stmt"/>
425
+ <line num="386" count="4" type="stmt"/>
426
+ <line num="389" count="4" type="stmt"/>
427
+ <line num="390" count="4" type="stmt"/>
428
+ <line num="391" count="4" type="cond" truecount="3" falsecount="0"/>
423
429
  <line num="393" count="4" type="stmt"/>
424
- <line num="394" count="4" type="stmt"/>
425
- <line num="419" count="0" type="stmt"/>
430
+ <line num="397" count="4" type="stmt"/>
431
+ <line num="402" count="4" type="stmt"/>
432
+ <line num="407" count="4" type="stmt"/>
433
+ <line num="412" count="4" type="stmt"/>
434
+ <line num="413" count="4" type="stmt"/>
435
+ <line num="438" count="0" type="stmt"/>
426
436
  </file>
427
437
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/email.ts">
428
438
  <metrics statements="9" coveredstatements="7" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
429
- <line num="1" count="18" type="stmt"/>
430
- <line num="2" count="18" type="stmt"/>
431
- <line num="5" count="18" type="stmt"/>
439
+ <line num="1" count="17" type="stmt"/>
440
+ <line num="2" count="17" type="stmt"/>
441
+ <line num="5" count="17" type="stmt"/>
432
442
  <line num="17" count="1" type="stmt"/>
433
443
  <line num="19" count="1" type="cond" truecount="0" falsecount="1"/>
434
444
  <line num="20" count="0" type="stmt"/>
@@ -438,79 +448,79 @@
438
448
  </file>
439
449
  <file name="license.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/license.ts">
440
450
  <metrics statements="21" coveredstatements="6" conditionals="2" coveredconditionals="0" methods="10" coveredmethods="0"/>
441
- <line num="1" count="18" type="stmt"/>
442
- <line num="3" count="18" type="stmt"/>
451
+ <line num="1" count="17" type="stmt"/>
452
+ <line num="3" count="17" type="stmt"/>
443
453
  <line num="4" count="0" type="stmt"/>
444
454
  <line num="5" count="0" type="cond" truecount="0" falsecount="1"/>
445
455
  <line num="6" count="0" type="stmt"/>
446
456
  <line num="9" count="0" type="stmt"/>
447
457
  <line num="10" count="0" type="stmt"/>
448
- <line num="13" count="18" type="stmt"/>
458
+ <line num="13" count="17" type="stmt"/>
449
459
  <line num="14" count="0" type="stmt"/>
450
460
  <line num="15" count="0" type="stmt"/>
451
- <line num="18" count="18" type="stmt"/>
461
+ <line num="18" count="17" type="stmt"/>
452
462
  <line num="19" count="0" type="stmt"/>
453
463
  <line num="20" count="0" type="cond" truecount="0" falsecount="1"/>
454
464
  <line num="21" count="0" type="stmt"/>
455
465
  <line num="22" count="0" type="stmt"/>
456
466
  <line num="24" count="0" type="stmt"/>
457
- <line num="27" count="18" type="stmt"/>
467
+ <line num="27" count="17" type="stmt"/>
458
468
  <line num="28" count="0" type="stmt"/>
459
469
  <line num="29" count="0" type="stmt"/>
460
- <line num="32" count="18" type="stmt"/>
470
+ <line num="32" count="17" type="stmt"/>
461
471
  <line num="33" count="0" type="stmt"/>
462
472
  </file>
463
473
  <file name="roles.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/roles.ts">
464
- <metrics statements="34" coveredstatements="34" conditionals="1" coveredconditionals="1" methods="5" coveredmethods="5"/>
465
- <line num="1" count="18" type="stmt"/>
466
- <line num="9" count="18" type="stmt"/>
467
- <line num="11" count="18" type="stmt"/>
468
- <line num="12" count="1" type="stmt"/>
469
- <line num="14" count="1" type="stmt"/>
470
- <line num="15" count="1" type="stmt"/>
471
- <line num="16" count="1" type="stmt"/>
472
- <line num="18" count="1" type="stmt"/>
473
- <line num="20" count="1" type="stmt"/>
474
- <line num="21" count="1" type="stmt"/>
475
- <line num="22" count="1" type="stmt"/>
476
- <line num="23" count="1" type="stmt"/>
477
- <line num="24" count="1" type="stmt"/>
478
- <line num="31" count="1" type="stmt"/>
479
- <line num="34" count="18" type="stmt"/>
480
- <line num="35" count="1" type="stmt"/>
481
- <line num="36" count="1" type="stmt"/>
482
- <line num="37" count="1" type="stmt"/>
483
- <line num="38" count="1" type="stmt"/>
484
- <line num="39" count="1" type="stmt"/>
485
- <line num="48" count="18" type="stmt"/>
486
- <line num="49" count="1" type="stmt"/>
487
- <line num="50" count="1" type="stmt"/>
488
- <line num="51" count="1" type="stmt"/>
489
- <line num="52" count="1" type="stmt"/>
490
- <line num="53" count="1" type="stmt"/>
491
- <line num="54" count="1" type="stmt"/>
492
- <line num="55" count="2" type="cond" truecount="1" falsecount="0"/>
493
- <line num="56" count="2" type="stmt"/>
494
- <line num="57" count="2" type="stmt"/>
495
- <line num="58" count="2" type="stmt"/>
496
- <line num="61" count="1" type="stmt"/>
497
- <line num="62" count="1" type="stmt"/>
498
- <line num="63" count="1" type="stmt"/>
474
+ <metrics statements="34" coveredstatements="5" conditionals="1" coveredconditionals="0" methods="5" coveredmethods="0"/>
475
+ <line num="1" count="17" type="stmt"/>
476
+ <line num="9" count="17" type="stmt"/>
477
+ <line num="11" count="17" type="stmt"/>
478
+ <line num="12" count="0" type="stmt"/>
479
+ <line num="14" count="0" type="stmt"/>
480
+ <line num="15" count="0" type="stmt"/>
481
+ <line num="16" count="0" type="stmt"/>
482
+ <line num="18" count="0" type="stmt"/>
483
+ <line num="20" count="0" type="stmt"/>
484
+ <line num="21" count="0" type="stmt"/>
485
+ <line num="22" count="0" type="stmt"/>
486
+ <line num="23" count="0" type="stmt"/>
487
+ <line num="24" count="0" type="stmt"/>
488
+ <line num="31" count="0" type="stmt"/>
489
+ <line num="34" count="17" type="stmt"/>
490
+ <line num="35" count="0" type="stmt"/>
491
+ <line num="36" count="0" type="stmt"/>
492
+ <line num="37" count="0" type="stmt"/>
493
+ <line num="38" count="0" type="stmt"/>
494
+ <line num="39" count="0" type="stmt"/>
495
+ <line num="48" count="17" type="stmt"/>
496
+ <line num="49" count="0" type="stmt"/>
497
+ <line num="50" count="0" type="stmt"/>
498
+ <line num="51" count="0" type="stmt"/>
499
+ <line num="52" count="0" type="stmt"/>
500
+ <line num="53" count="0" type="stmt"/>
501
+ <line num="54" count="0" type="stmt"/>
502
+ <line num="55" count="0" type="cond" truecount="0" falsecount="1"/>
503
+ <line num="56" count="0" type="stmt"/>
504
+ <line num="57" count="0" type="stmt"/>
505
+ <line num="58" count="0" type="stmt"/>
506
+ <line num="61" count="0" type="stmt"/>
507
+ <line num="62" count="0" type="stmt"/>
508
+ <line num="63" count="0" type="stmt"/>
499
509
  </file>
500
510
  <file name="self.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/self.ts">
501
511
  <metrics statements="78" coveredstatements="51" conditionals="11" coveredconditionals="4" methods="10" coveredmethods="5"/>
502
- <line num="1" count="18" type="stmt"/>
503
- <line num="2" count="18" type="stmt"/>
504
- <line num="12" count="18" type="stmt"/>
505
- <line num="13" count="18" type="stmt"/>
506
- <line num="14" count="18" type="stmt"/>
507
- <line num="15" count="18" type="stmt"/>
512
+ <line num="1" count="17" type="stmt"/>
513
+ <line num="2" count="17" type="stmt"/>
514
+ <line num="12" count="17" type="stmt"/>
515
+ <line num="13" count="17" type="stmt"/>
516
+ <line num="14" count="17" type="stmt"/>
517
+ <line num="15" count="17" type="stmt"/>
508
518
  <line num="18" count="0" type="stmt"/>
509
519
  <line num="22" count="0" type="stmt"/>
510
520
  <line num="29" count="0" type="stmt"/>
511
521
  <line num="30" count="0" type="stmt"/>
512
522
  <line num="31" count="0" type="stmt"/>
513
- <line num="34" count="18" type="stmt"/>
523
+ <line num="34" count="17" type="stmt"/>
514
524
  <line num="37" count="0" type="cond" truecount="0" falsecount="4"/>
515
525
  <line num="38" count="0" type="stmt"/>
516
526
  <line num="39" count="0" type="stmt"/>
@@ -524,7 +534,7 @@
524
534
  <line num="53" count="0" type="stmt"/>
525
535
  <line num="54" count="0" type="stmt"/>
526
536
  <line num="55" count="0" type="stmt"/>
527
- <line num="58" count="18" type="stmt"/>
537
+ <line num="58" count="17" type="stmt"/>
528
538
  <line num="59" count="0" type="stmt"/>
529
539
  <line num="60" count="0" type="stmt"/>
530
540
  <line num="62" count="0" type="stmt"/>
@@ -532,24 +542,24 @@
532
542
  <line num="65" count="0" type="stmt"/>
533
543
  <line num="70" count="0" type="stmt"/>
534
544
  <line num="72" count="0" type="stmt"/>
535
- <line num="75" count="18" type="stmt"/>
545
+ <line num="75" count="17" type="stmt"/>
536
546
  <line num="76" count="1" type="stmt"/>
537
547
  <line num="77" count="1" type="cond" truecount="1" falsecount="2"/>
538
548
  <line num="81" count="0" type="stmt"/>
539
- <line num="88" count="18" type="stmt"/>
549
+ <line num="88" count="17" type="stmt"/>
540
550
  <line num="89" count="1" type="stmt"/>
541
551
  <line num="90" count="1" type="stmt"/>
542
552
  <line num="91" count="1" type="stmt"/>
543
553
  <line num="92" count="1" type="stmt"/>
544
554
  <line num="93" count="1" type="stmt"/>
545
- <line num="96" count="18" type="stmt"/>
555
+ <line num="96" count="17" type="stmt"/>
546
556
  <line num="97" count="2" type="stmt"/>
547
557
  <line num="98" count="2" type="stmt"/>
548
558
  <line num="99" count="2" type="stmt"/>
549
559
  <line num="100" count="17" type="cond" truecount="1" falsecount="0"/>
550
560
  <line num="101" count="1" type="stmt"/>
551
561
  <line num="104" count="2" type="stmt"/>
552
- <line num="107" count="18" type="stmt"/>
562
+ <line num="107" count="17" type="stmt"/>
553
563
  <line num="108" count="1" type="cond" truecount="0" falsecount="1"/>
554
564
  <line num="109" count="0" type="stmt"/>
555
565
  <line num="111" count="1" type="stmt"/>
@@ -560,7 +570,7 @@
560
570
  <line num="123" count="1" type="stmt"/>
561
571
  <line num="124" count="1" type="stmt"/>
562
572
  <line num="126" count="1" type="stmt"/>
563
- <line num="129" count="18" type="stmt"/>
573
+ <line num="129" count="17" type="stmt"/>
564
574
  <line num="130" count="2" type="stmt"/>
565
575
  <line num="131" count="2" type="stmt"/>
566
576
  <line num="132" count="2" type="stmt"/>
@@ -579,35 +589,35 @@
579
589
  <line num="162" count="1" type="stmt"/>
580
590
  </file>
581
591
  <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/templates.ts">
582
- <metrics statements="32" coveredstatements="25" conditionals="2" coveredconditionals="2" methods="7" coveredmethods="3"/>
583
- <line num="1" count="18" type="stmt"/>
584
- <line num="6" count="18" type="stmt"/>
585
- <line num="7" count="18" type="stmt"/>
586
- <line num="9" count="18" type="stmt"/>
587
- <line num="10" count="1" type="stmt"/>
588
- <line num="11" count="1" type="stmt"/>
589
- <line num="12" count="1" type="cond" truecount="1" falsecount="0"/>
590
- <line num="13" count="1" type="stmt"/>
591
- <line num="15" count="1" type="cond" truecount="1" falsecount="0"/>
592
- <line num="16" count="1" type="stmt"/>
593
- <line num="19" count="1" type="stmt"/>
594
- <line num="20" count="1" type="stmt"/>
595
- <line num="26" count="18" type="stmt"/>
596
- <line num="27" count="2" type="stmt"/>
597
- <line num="28" count="2" type="stmt"/>
598
- <line num="29" count="2" type="stmt"/>
599
- <line num="30" count="10" type="stmt"/>
600
- <line num="31" count="10" type="stmt"/>
601
- <line num="38" count="2" type="stmt"/>
602
- <line num="47" count="18" type="stmt"/>
603
- <line num="48" count="2" type="stmt"/>
604
- <line num="51" count="18" type="stmt"/>
592
+ <metrics statements="32" coveredstatements="10" conditionals="2" coveredconditionals="0" methods="7" coveredmethods="0"/>
593
+ <line num="1" count="17" type="stmt"/>
594
+ <line num="6" count="17" type="stmt"/>
595
+ <line num="7" count="17" type="stmt"/>
596
+ <line num="9" count="17" type="stmt"/>
597
+ <line num="10" count="0" type="stmt"/>
598
+ <line num="11" count="0" type="stmt"/>
599
+ <line num="12" count="0" type="cond" truecount="0" falsecount="1"/>
600
+ <line num="13" count="0" type="stmt"/>
601
+ <line num="15" count="0" type="cond" truecount="0" falsecount="1"/>
602
+ <line num="16" count="0" type="stmt"/>
603
+ <line num="19" count="0" type="stmt"/>
604
+ <line num="20" count="0" type="stmt"/>
605
+ <line num="26" count="17" type="stmt"/>
606
+ <line num="27" count="0" type="stmt"/>
607
+ <line num="28" count="0" type="stmt"/>
608
+ <line num="29" count="0" type="stmt"/>
609
+ <line num="30" count="0" type="stmt"/>
610
+ <line num="31" count="0" type="stmt"/>
611
+ <line num="38" count="0" type="stmt"/>
612
+ <line num="47" count="17" type="stmt"/>
613
+ <line num="48" count="0" type="stmt"/>
614
+ <line num="51" count="17" type="stmt"/>
605
615
  <line num="53" count="0" type="stmt"/>
606
- <line num="58" count="18" type="stmt"/>
616
+ <line num="58" count="17" type="stmt"/>
607
617
  <line num="60" count="0" type="stmt"/>
608
- <line num="65" count="18" type="stmt"/>
618
+ <line num="65" count="17" type="stmt"/>
609
619
  <line num="67" count="0" type="stmt"/>
610
- <line num="72" count="18" type="stmt"/>
620
+ <line num="72" count="17" type="stmt"/>
611
621
  <line num="73" count="0" type="stmt"/>
612
622
  <line num="74" count="0" type="stmt"/>
613
623
  <line num="75" count="0" type="stmt"/>
@@ -615,26 +625,26 @@
615
625
  </file>
616
626
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/users.ts">
617
627
  <metrics statements="107" coveredstatements="79" conditionals="40" coveredconditionals="23" methods="33" coveredmethods="25"/>
618
- <line num="1" count="18" type="stmt"/>
619
- <line num="2" count="18" type="stmt"/>
620
- <line num="3" count="18" type="stmt"/>
621
- <line num="14" count="18" type="stmt"/>
622
- <line num="21" count="18" type="stmt"/>
623
- <line num="23" count="18" type="stmt"/>
624
- <line num="25" count="86" type="stmt"/>
625
- <line num="26" count="86" type="stmt"/>
626
- <line num="27" count="86" type="stmt"/>
627
- <line num="28" count="86" type="stmt"/>
628
+ <line num="1" count="17" type="stmt"/>
629
+ <line num="2" count="17" type="stmt"/>
630
+ <line num="3" count="17" type="stmt"/>
631
+ <line num="14" count="17" type="stmt"/>
632
+ <line num="21" count="17" type="stmt"/>
633
+ <line num="23" count="17" type="stmt"/>
634
+ <line num="25" count="83" type="stmt"/>
635
+ <line num="26" count="83" type="stmt"/>
636
+ <line num="27" count="83" type="stmt"/>
637
+ <line num="28" count="83" type="stmt"/>
628
638
  <line num="30" count="5" type="cond" truecount="2" falsecount="0"/>
629
- <line num="34" count="18" type="stmt"/>
639
+ <line num="34" count="17" type="stmt"/>
630
640
  <line num="35" count="3" type="cond" truecount="4" falsecount="1"/>
631
641
  <line num="36" count="1" type="stmt"/>
632
642
  <line num="38" count="2" type="stmt"/>
633
- <line num="41" count="18" type="stmt"/>
643
+ <line num="41" count="17" type="stmt"/>
634
644
  <line num="42" count="6" type="cond" truecount="2" falsecount="1"/>
635
645
  <line num="43" count="0" type="stmt"/>
636
646
  <line num="47" count="6" type="stmt"/>
637
- <line num="50" count="18" type="stmt"/>
647
+ <line num="50" count="17" type="stmt"/>
638
648
  <line num="51" count="9" type="stmt"/>
639
649
  <line num="52" count="9" type="stmt"/>
640
650
  <line num="54" count="9" type="stmt"/>
@@ -644,9 +654,9 @@
644
654
  <line num="59" count="3" type="stmt"/>
645
655
  <line num="62" count="1" type="cond" truecount="6" falsecount="2"/>
646
656
  <line num="64" count="8" type="stmt"/>
647
- <line num="67" count="18" type="stmt"/>
657
+ <line num="67" count="17" type="stmt"/>
648
658
  <line num="68" count="12" type="cond" truecount="1" falsecount="1"/>
649
- <line num="71" count="18" type="stmt"/>
659
+ <line num="71" count="17" type="stmt"/>
650
660
  <line num="72" count="6" type="stmt"/>
651
661
  <line num="74" count="6" type="stmt"/>
652
662
  <line num="76" count="6" type="stmt"/>
@@ -665,39 +675,39 @@
665
675
  <line num="119" count="6" type="stmt"/>
666
676
  <line num="121" count="6" type="stmt"/>
667
677
  <line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
668
- <line num="128" count="18" type="stmt"/>
678
+ <line num="128" count="17" type="stmt"/>
669
679
  <line num="129" count="0" type="stmt"/>
670
680
  <line num="130" count="0" type="stmt"/>
671
681
  <line num="131" count="0" type="stmt"/>
672
682
  <line num="133" count="0" type="cond" truecount="0" falsecount="2"/>
673
- <line num="137" count="18" type="stmt"/>
683
+ <line num="137" count="17" type="stmt"/>
674
684
  <line num="138" count="5" type="stmt"/>
675
685
  <line num="139" count="5" type="cond" truecount="1" falsecount="0"/>
676
686
  <line num="140" count="1" type="stmt"/>
677
687
  <line num="143" count="4" type="stmt"/>
678
688
  <line num="145" count="3" type="stmt"/>
679
- <line num="150" count="18" type="stmt"/>
689
+ <line num="150" count="17" type="stmt"/>
680
690
  <line num="151" count="0" type="stmt"/>
681
691
  <line num="152" count="0" type="stmt"/>
682
692
  <line num="154" count="0" type="stmt"/>
683
693
  <line num="155" count="0" type="cond" truecount="0" falsecount="1"/>
684
694
  <line num="156" count="0" type="stmt"/>
685
695
  <line num="159" count="0" type="stmt"/>
686
- <line num="163" count="18" type="stmt"/>
696
+ <line num="163" count="17" type="stmt"/>
687
697
  <line num="164" count="0" type="stmt"/>
688
698
  <line num="166" count="0" type="stmt"/>
689
699
  <line num="167" count="0" type="cond" truecount="0" falsecount="1"/>
690
700
  <line num="168" count="0" type="stmt"/>
691
701
  <line num="171" count="0" type="stmt"/>
692
- <line num="175" count="18" type="stmt"/>
693
- <line num="176" count="9" type="stmt"/>
694
- <line num="179" count="18" type="stmt"/>
702
+ <line num="175" count="17" type="stmt"/>
703
+ <line num="176" count="8" type="stmt"/>
704
+ <line num="179" count="17" type="stmt"/>
695
705
  <line num="180" count="0" type="stmt"/>
696
706
  <line num="181" count="0" type="stmt"/>
697
707
  <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
698
708
  <line num="183" count="0" type="stmt"/>
699
709
  <line num="185" count="0" type="stmt"/>
700
- <line num="189" count="18" type="stmt"/>
710
+ <line num="189" count="17" type="stmt"/>
701
711
  <line num="190" count="3" type="stmt"/>
702
712
  <line num="191" count="3" type="stmt"/>
703
713
  <line num="194" count="3" type="cond" truecount="1" falsecount="0"/>
@@ -706,10 +716,10 @@
706
716
  <line num="197" count="1" type="stmt"/>
707
717
  <line num="199" count="0" type="stmt"/>
708
718
  <line num="203" count="2" type="stmt"/>
709
- <line num="208" count="18" type="stmt"/>
719
+ <line num="208" count="17" type="stmt"/>
710
720
  <line num="209" count="2" type="stmt"/>
711
721
  <line num="210" count="2" type="stmt"/>
712
- <line num="213" count="18" type="stmt"/>
722
+ <line num="213" count="17" type="stmt"/>
713
723
  <line num="214" count="1" type="stmt"/>
714
724
  <line num="215" count="1" type="stmt"/>
715
725
  <line num="217" count="1" type="stmt"/>
@@ -725,8 +735,8 @@
725
735
  </file>
726
736
  <file name="workspaces.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/workspaces.ts">
727
737
  <metrics statements="26" coveredstatements="5" conditionals="1" coveredconditionals="0" methods="5" coveredmethods="0"/>
728
- <line num="1" count="18" type="stmt"/>
729
- <line num="4" count="18" type="stmt"/>
738
+ <line num="1" count="17" type="stmt"/>
739
+ <line num="4" count="17" type="stmt"/>
730
740
  <line num="5" count="0" type="stmt"/>
731
741
  <line num="6" count="0" type="stmt"/>
732
742
  <line num="9" count="0" type="cond" truecount="0" falsecount="1"/>
@@ -735,16 +745,16 @@
735
745
  <line num="14" count="0" type="stmt"/>
736
746
  <line num="15" count="0" type="stmt"/>
737
747
  <line num="20" count="0" type="stmt"/>
738
- <line num="24" count="18" type="stmt"/>
748
+ <line num="24" count="17" type="stmt"/>
739
749
  <line num="25" count="0" type="stmt"/>
740
750
  <line num="26" count="0" type="stmt"/>
741
751
  <line num="31" count="0" type="stmt"/>
742
- <line num="34" count="18" type="stmt"/>
752
+ <line num="34" count="17" type="stmt"/>
743
753
  <line num="35" count="0" type="stmt"/>
744
754
  <line num="36" count="0" type="stmt"/>
745
755
  <line num="37" count="0" type="stmt"/>
746
756
  <line num="39" count="0" type="stmt"/>
747
- <line num="43" count="18" type="stmt"/>
757
+ <line num="43" count="17" type="stmt"/>
748
758
  <line num="44" count="0" type="stmt"/>
749
759
  <line num="45" count="0" type="stmt"/>
750
760
  <line num="47" count="0" type="stmt"/>
@@ -757,40 +767,40 @@
757
767
  <metrics statements="50" coveredstatements="48" conditionals="8" coveredconditionals="8" methods="15" coveredmethods="15"/>
758
768
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/accounts.ts">
759
769
  <metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
760
- <line num="2" count="18" type="stmt"/>
761
- <line num="4" count="18" type="stmt"/>
770
+ <line num="2" count="17" type="stmt"/>
771
+ <line num="4" count="17" type="stmt"/>
762
772
  <line num="5" count="3" type="stmt"/>
763
773
  <line num="6" count="3" type="stmt"/>
764
774
  <line num="11" count="3" type="stmt"/>
765
775
  <line num="13" count="3" type="stmt"/>
766
776
  <line num="14" count="3" type="stmt"/>
767
- <line num="17" count="18" type="stmt"/>
777
+ <line num="17" count="17" type="stmt"/>
768
778
  <line num="18" count="2" type="stmt"/>
769
779
  <line num="19" count="2" type="stmt"/>
770
780
  <line num="20" count="2" type="stmt"/>
771
781
  </file>
772
782
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/environment.ts">
773
783
  <metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
774
- <line num="2" count="18" type="stmt"/>
775
- <line num="4" count="18" type="stmt"/>
784
+ <line num="2" count="17" type="stmt"/>
785
+ <line num="4" count="17" type="stmt"/>
776
786
  <line num="5" count="1" type="stmt"/>
777
787
  </file>
778
788
  <file name="migrations.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/migrations.ts">
779
789
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
780
- <line num="1" count="18" type="stmt"/>
781
- <line num="3" count="18" type="stmt"/>
790
+ <line num="1" count="17" type="stmt"/>
791
+ <line num="3" count="17" type="stmt"/>
782
792
  <line num="4" count="1" type="stmt"/>
783
793
  <line num="6" count="1" type="stmt"/>
784
794
  <line num="7" count="1" type="stmt"/>
785
- <line num="10" count="18" type="stmt"/>
795
+ <line num="10" count="17" type="stmt"/>
786
796
  <line num="11" count="1" type="stmt"/>
787
797
  <line num="12" count="1" type="stmt"/>
788
798
  </file>
789
799
  <file name="restore.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/restore.ts">
790
800
  <metrics statements="7" coveredstatements="7" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
791
- <line num="1" count="18" type="stmt"/>
792
- <line num="3" count="18" type="stmt"/>
793
- <line num="5" count="18" type="stmt"/>
801
+ <line num="1" count="17" type="stmt"/>
802
+ <line num="3" count="17" type="stmt"/>
803
+ <line num="5" count="17" type="stmt"/>
794
804
  <line num="6" count="2" type="cond" truecount="1" falsecount="0"/>
795
805
  <line num="7" count="1" type="stmt"/>
796
806
  <line num="9" count="1" type="stmt"/>
@@ -798,9 +808,9 @@
798
808
  </file>
799
809
  <file name="status.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/status.ts">
800
810
  <metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="4" methods="2" coveredmethods="2"/>
801
- <line num="1" count="18" type="stmt"/>
802
- <line num="2" count="18" type="stmt"/>
803
- <line num="5" count="18" type="stmt"/>
811
+ <line num="1" count="17" type="stmt"/>
812
+ <line num="2" count="17" type="stmt"/>
813
+ <line num="5" count="17" type="stmt"/>
804
814
  <line num="6" count="2" type="cond" truecount="4" falsecount="0"/>
805
815
  <line num="7" count="1" type="stmt"/>
806
816
  <line num="8" count="1" type="stmt"/>
@@ -808,9 +818,9 @@
808
818
  </file>
809
819
  <file name="tenants.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/tenants.ts">
810
820
  <metrics statements="14" coveredstatements="12" conditionals="1" coveredconditionals="1" methods="2" coveredmethods="2"/>
811
- <line num="2" count="18" type="stmt"/>
812
- <line num="3" count="18" type="stmt"/>
813
- <line num="5" count="18" type="stmt"/>
821
+ <line num="2" count="17" type="stmt"/>
822
+ <line num="3" count="17" type="stmt"/>
823
+ <line num="5" count="17" type="stmt"/>
814
824
  <line num="6" count="2" type="stmt"/>
815
825
  <line num="7" count="2" type="stmt"/>
816
826
  <line num="9" count="2" type="cond" truecount="1" falsecount="0"/>
@@ -821,309 +831,303 @@
821
831
  <line num="16" count="1" type="stmt"/>
822
832
  <line num="18" count="0" type="stmt"/>
823
833
  <line num="19" count="0" type="stmt"/>
824
- <line num="23" count="18" type="stmt"/>
834
+ <line num="23" count="17" type="stmt"/>
825
835
  </file>
826
836
  </package>
827
837
  <package name="src.api.routes">
828
838
  <metrics statements="18" coveredstatements="18" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
829
839
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/index.ts">
830
840
  <metrics statements="18" coveredstatements="18" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
831
- <line num="2" count="18" type="stmt"/>
832
- <line num="3" count="18" type="stmt"/>
833
- <line num="4" count="18" type="stmt"/>
834
- <line num="5" count="18" type="stmt"/>
835
- <line num="6" count="18" type="stmt"/>
836
- <line num="7" count="18" type="stmt"/>
837
- <line num="8" count="18" type="stmt"/>
838
- <line num="9" count="18" type="stmt"/>
839
- <line num="10" count="18" type="stmt"/>
840
- <line num="11" count="18" type="stmt"/>
841
- <line num="12" count="18" type="stmt"/>
842
- <line num="13" count="18" type="stmt"/>
843
- <line num="14" count="18" type="stmt"/>
844
- <line num="15" count="18" type="stmt"/>
845
- <line num="16" count="18" type="stmt"/>
846
- <line num="17" count="18" type="stmt"/>
847
- <line num="19" count="18" type="stmt"/>
848
- <line num="20" count="18" type="stmt"/>
841
+ <line num="2" count="17" type="stmt"/>
842
+ <line num="3" count="17" type="stmt"/>
843
+ <line num="4" count="17" type="stmt"/>
844
+ <line num="5" count="17" type="stmt"/>
845
+ <line num="6" count="17" type="stmt"/>
846
+ <line num="7" count="17" type="stmt"/>
847
+ <line num="8" count="17" type="stmt"/>
848
+ <line num="9" count="17" type="stmt"/>
849
+ <line num="10" count="17" type="stmt"/>
850
+ <line num="11" count="17" type="stmt"/>
851
+ <line num="12" count="17" type="stmt"/>
852
+ <line num="13" count="17" type="stmt"/>
853
+ <line num="14" count="17" type="stmt"/>
854
+ <line num="15" count="17" type="stmt"/>
855
+ <line num="16" count="17" type="stmt"/>
856
+ <line num="17" count="17" type="stmt"/>
857
+ <line num="19" count="17" type="stmt"/>
858
+ <line num="20" count="17" type="stmt"/>
849
859
  </file>
850
860
  </package>
851
861
  <package name="src.api.routes.global">
852
862
  <metrics statements="88" coveredstatements="88" conditionals="2" coveredconditionals="2" methods="18" coveredmethods="18"/>
853
863
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/auth.ts">
854
864
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
855
- <line num="1" count="18" type="stmt"/>
856
- <line num="2" count="18" type="stmt"/>
857
- <line num="3" count="18" type="stmt"/>
858
- <line num="4" count="18" type="stmt"/>
859
- <line num="6" count="18" type="stmt"/>
860
- <line num="10" count="18" type="stmt"/>
861
- <line num="18" count="18" type="stmt"/>
862
- <line num="25" count="18" type="stmt"/>
863
- <line num="31" count="18" type="stmt"/>
864
- <line num="88" count="18" type="stmt"/>
865
+ <line num="1" count="17" type="stmt"/>
866
+ <line num="2" count="17" type="stmt"/>
867
+ <line num="3" count="17" type="stmt"/>
868
+ <line num="4" count="17" type="stmt"/>
869
+ <line num="6" count="17" type="stmt"/>
870
+ <line num="10" count="17" type="stmt"/>
871
+ <line num="18" count="17" type="stmt"/>
872
+ <line num="25" count="17" type="stmt"/>
873
+ <line num="31" count="17" type="stmt"/>
874
+ <line num="88" count="17" type="stmt"/>
865
875
  </file>
866
876
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/configs.ts">
867
877
  <metrics statements="15" coveredstatements="15" conditionals="0" coveredconditionals="0" methods="7" coveredmethods="7"/>
868
- <line num="1" count="18" type="stmt"/>
869
- <line num="2" count="18" type="stmt"/>
870
- <line num="3" count="18" type="stmt"/>
871
- <line num="4" count="18" type="stmt"/>
872
- <line num="5" count="18" type="stmt"/>
873
- <line num="7" count="18" type="stmt"/>
874
- <line num="11" count="18" type="stmt"/>
875
- <line num="26" count="18" type="stmt"/>
876
- <line num="36" count="18" type="stmt"/>
877
- <line num="45" count="18" type="stmt"/>
878
- <line num="63" count="18" type="stmt"/>
879
- <line num="86" count="18" type="stmt"/>
880
- <line num="94" count="36" type="stmt"/>
881
- <line num="99" count="18" type="stmt"/>
882
- <line num="124" count="18" type="stmt"/>
878
+ <line num="1" count="17" type="stmt"/>
879
+ <line num="2" count="17" type="stmt"/>
880
+ <line num="3" count="17" type="stmt"/>
881
+ <line num="4" count="17" type="stmt"/>
882
+ <line num="5" count="17" type="stmt"/>
883
+ <line num="7" count="17" type="stmt"/>
884
+ <line num="11" count="17" type="stmt"/>
885
+ <line num="26" count="17" type="stmt"/>
886
+ <line num="36" count="17" type="stmt"/>
887
+ <line num="45" count="17" type="stmt"/>
888
+ <line num="63" count="17" type="stmt"/>
889
+ <line num="86" count="17" type="stmt"/>
890
+ <line num="94" count="34" type="stmt"/>
891
+ <line num="99" count="17" type="stmt"/>
892
+ <line num="124" count="17" type="stmt"/>
883
893
  </file>
884
894
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/email.ts">
885
895
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
886
- <line num="1" count="18" type="stmt"/>
887
- <line num="2" count="18" type="stmt"/>
888
- <line num="3" count="18" type="stmt"/>
889
- <line num="4" count="18" type="stmt"/>
890
- <line num="5" count="18" type="stmt"/>
891
- <line num="7" count="18" type="stmt"/>
892
- <line num="11" count="18" type="stmt"/>
893
- <line num="29" count="18" type="stmt"/>
894
- <line num="36" count="18" type="stmt"/>
896
+ <line num="1" count="17" type="stmt"/>
897
+ <line num="2" count="17" type="stmt"/>
898
+ <line num="3" count="17" type="stmt"/>
899
+ <line num="4" count="17" type="stmt"/>
900
+ <line num="5" count="17" type="stmt"/>
901
+ <line num="7" count="17" type="stmt"/>
902
+ <line num="11" count="17" type="stmt"/>
903
+ <line num="29" count="17" type="stmt"/>
904
+ <line num="36" count="17" type="stmt"/>
895
905
  </file>
896
906
  <file name="license.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/license.ts">
897
907
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
898
- <line num="1" count="18" type="stmt"/>
899
- <line num="2" count="18" type="stmt"/>
900
- <line num="4" count="18" type="stmt"/>
901
- <line num="6" count="18" type="stmt"/>
902
- <line num="13" count="18" type="stmt"/>
908
+ <line num="1" count="17" type="stmt"/>
909
+ <line num="2" count="17" type="stmt"/>
910
+ <line num="4" count="17" type="stmt"/>
911
+ <line num="6" count="17" type="stmt"/>
912
+ <line num="13" count="17" type="stmt"/>
903
913
  </file>
904
914
  <file name="roles.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/roles.ts">
905
915
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
906
- <line num="1" count="18" type="stmt"/>
907
- <line num="2" count="18" type="stmt"/>
908
- <line num="3" count="18" type="stmt"/>
909
- <line num="5" count="18" type="stmt"/>
910
- <line num="7" count="18" type="stmt"/>
911
- <line num="16" count="18" type="stmt"/>
916
+ <line num="1" count="17" type="stmt"/>
917
+ <line num="2" count="17" type="stmt"/>
918
+ <line num="3" count="17" type="stmt"/>
919
+ <line num="5" count="17" type="stmt"/>
920
+ <line num="7" count="17" type="stmt"/>
921
+ <line num="16" count="17" type="stmt"/>
912
922
  </file>
913
923
  <file name="self.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/self.ts">
914
924
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
915
- <line num="1" count="18" type="stmt"/>
916
- <line num="2" count="18" type="stmt"/>
917
- <line num="3" count="18" type="stmt"/>
918
- <line num="4" count="18" type="stmt"/>
919
- <line num="6" count="18" type="stmt"/>
920
- <line num="8" count="18" type="stmt"/>
921
- <line num="18" count="18" type="stmt"/>
925
+ <line num="1" count="17" type="stmt"/>
926
+ <line num="2" count="17" type="stmt"/>
927
+ <line num="3" count="17" type="stmt"/>
928
+ <line num="4" count="17" type="stmt"/>
929
+ <line num="6" count="17" type="stmt"/>
930
+ <line num="8" count="17" type="stmt"/>
931
+ <line num="18" count="17" type="stmt"/>
922
932
  </file>
923
933
  <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/templates.ts">
924
934
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
925
- <line num="1" count="18" type="stmt"/>
926
- <line num="2" count="18" type="stmt"/>
927
- <line num="3" count="18" type="stmt"/>
928
- <line num="4" count="18" type="stmt"/>
929
- <line num="5" count="18" type="stmt"/>
930
- <line num="6" count="18" type="stmt"/>
931
- <line num="8" count="18" type="stmt"/>
932
- <line num="12" count="18" type="stmt"/>
933
- <line num="23" count="18" type="stmt"/>
934
- <line num="37" count="18" type="stmt"/>
935
+ <line num="1" count="17" type="stmt"/>
936
+ <line num="2" count="17" type="stmt"/>
937
+ <line num="3" count="17" type="stmt"/>
938
+ <line num="4" count="17" type="stmt"/>
939
+ <line num="5" count="17" type="stmt"/>
940
+ <line num="6" count="17" type="stmt"/>
941
+ <line num="8" count="17" type="stmt"/>
942
+ <line num="12" count="17" type="stmt"/>
943
+ <line num="23" count="17" type="stmt"/>
944
+ <line num="37" count="17" type="stmt"/>
935
945
  </file>
936
946
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/users.ts">
937
947
  <metrics statements="18" coveredstatements="18" conditionals="2" coveredconditionals="2" methods="5" coveredmethods="5"/>
938
- <line num="1" count="18" type="stmt"/>
939
- <line num="2" count="18" type="stmt"/>
940
- <line num="3" count="18" type="stmt"/>
941
- <line num="4" count="18" type="stmt"/>
942
- <line num="5" count="18" type="stmt"/>
943
- <line num="6" count="18" type="stmt"/>
944
- <line num="7" count="18" type="stmt"/>
945
- <line num="9" count="18" type="stmt"/>
946
- <line num="12" count="18" type="stmt"/>
947
- <line num="25" count="18" type="stmt"/>
948
- <line num="33" count="18" type="stmt"/>
949
- <line num="41" count="18" type="stmt"/>
948
+ <line num="1" count="17" type="stmt"/>
949
+ <line num="2" count="17" type="stmt"/>
950
+ <line num="3" count="17" type="stmt"/>
951
+ <line num="4" count="17" type="stmt"/>
952
+ <line num="5" count="17" type="stmt"/>
953
+ <line num="6" count="17" type="stmt"/>
954
+ <line num="7" count="17" type="stmt"/>
955
+ <line num="9" count="17" type="stmt"/>
956
+ <line num="12" count="17" type="stmt"/>
957
+ <line num="25" count="17" type="stmt"/>
958
+ <line num="33" count="17" type="stmt"/>
959
+ <line num="41" count="17" type="stmt"/>
950
960
  <line num="42" count="23" type="cond" truecount="2" falsecount="0"/>
951
961
  <line num="43" count="11" type="stmt"/>
952
962
  <line num="45" count="12" type="stmt"/>
953
- <line num="51" count="18" type="stmt"/>
954
- <line num="57" count="18" type="stmt"/>
955
- <line num="116" count="18" type="stmt"/>
963
+ <line num="51" count="17" type="stmt"/>
964
+ <line num="57" count="17" type="stmt"/>
965
+ <line num="116" count="17" type="stmt"/>
956
966
  </file>
957
967
  <file name="workspaces.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/workspaces.ts">
958
968
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
959
- <line num="1" count="18" type="stmt"/>
960
- <line num="2" count="18" type="stmt"/>
961
- <line num="3" count="18" type="stmt"/>
962
- <line num="4" count="18" type="stmt"/>
963
- <line num="6" count="18" type="stmt"/>
964
- <line num="10" count="18" type="stmt"/>
965
- <line num="26" count="18" type="stmt"/>
966
- <line num="37" count="18" type="stmt"/>
969
+ <line num="1" count="17" type="stmt"/>
970
+ <line num="2" count="17" type="stmt"/>
971
+ <line num="3" count="17" type="stmt"/>
972
+ <line num="4" count="17" type="stmt"/>
973
+ <line num="6" count="17" type="stmt"/>
974
+ <line num="10" count="17" type="stmt"/>
975
+ <line num="26" count="17" type="stmt"/>
976
+ <line num="37" count="17" type="stmt"/>
967
977
  </file>
968
978
  </package>
969
979
  <package name="src.api.routes.system">
970
980
  <metrics statements="33" coveredstatements="33" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
971
981
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/accounts.ts">
972
982
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
973
- <line num="1" count="18" type="stmt"/>
974
- <line num="2" count="18" type="stmt"/>
975
- <line num="3" count="18" type="stmt"/>
976
- <line num="5" count="18" type="stmt"/>
977
- <line num="7" count="18" type="stmt"/>
978
- <line num="19" count="18" type="stmt"/>
983
+ <line num="1" count="17" type="stmt"/>
984
+ <line num="2" count="17" type="stmt"/>
985
+ <line num="3" count="17" type="stmt"/>
986
+ <line num="5" count="17" type="stmt"/>
987
+ <line num="7" count="17" type="stmt"/>
988
+ <line num="19" count="17" type="stmt"/>
979
989
  </file>
980
990
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/environment.ts">
981
991
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
982
- <line num="1" count="18" type="stmt"/>
983
- <line num="2" count="18" type="stmt"/>
984
- <line num="4" count="18" type="stmt"/>
985
- <line num="6" count="18" type="stmt"/>
986
- <line num="8" count="18" type="stmt"/>
992
+ <line num="1" count="17" type="stmt"/>
993
+ <line num="2" count="17" type="stmt"/>
994
+ <line num="4" count="17" type="stmt"/>
995
+ <line num="6" count="17" type="stmt"/>
996
+ <line num="8" count="17" type="stmt"/>
987
997
  </file>
988
998
  <file name="migrations.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/migrations.ts">
989
999
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
990
- <line num="1" count="18" type="stmt"/>
991
- <line num="2" count="18" type="stmt"/>
992
- <line num="3" count="18" type="stmt"/>
993
- <line num="5" count="18" type="stmt"/>
994
- <line num="7" count="18" type="stmt"/>
995
- <line num="19" count="18" type="stmt"/>
1000
+ <line num="1" count="17" type="stmt"/>
1001
+ <line num="2" count="17" type="stmt"/>
1002
+ <line num="3" count="17" type="stmt"/>
1003
+ <line num="5" count="17" type="stmt"/>
1004
+ <line num="7" count="17" type="stmt"/>
1005
+ <line num="19" count="17" type="stmt"/>
996
1006
  </file>
997
1007
  <file name="restore.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/restore.ts">
998
1008
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
999
- <line num="1" count="18" type="stmt"/>
1000
- <line num="2" count="18" type="stmt"/>
1001
- <line num="4" count="18" type="stmt"/>
1002
- <line num="6" count="18" type="stmt"/>
1003
- <line num="8" count="18" type="stmt"/>
1009
+ <line num="1" count="17" type="stmt"/>
1010
+ <line num="2" count="17" type="stmt"/>
1011
+ <line num="4" count="17" type="stmt"/>
1012
+ <line num="6" count="17" type="stmt"/>
1013
+ <line num="8" count="17" type="stmt"/>
1004
1014
  </file>
1005
1015
  <file name="status.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/status.ts">
1006
1016
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1007
- <line num="1" count="18" type="stmt"/>
1008
- <line num="2" count="18" type="stmt"/>
1009
- <line num="4" count="18" type="stmt"/>
1010
- <line num="6" count="18" type="stmt"/>
1011
- <line num="8" count="18" type="stmt"/>
1017
+ <line num="1" count="17" type="stmt"/>
1018
+ <line num="2" count="17" type="stmt"/>
1019
+ <line num="4" count="17" type="stmt"/>
1020
+ <line num="6" count="17" type="stmt"/>
1021
+ <line num="8" count="17" type="stmt"/>
1012
1022
  </file>
1013
1023
  <file name="tenants.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/tenants.ts">
1014
1024
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1015
- <line num="1" count="18" type="stmt"/>
1016
- <line num="2" count="18" type="stmt"/>
1017
- <line num="3" count="18" type="stmt"/>
1018
- <line num="5" count="18" type="stmt"/>
1019
- <line num="7" count="18" type="stmt"/>
1020
- <line num="13" count="18" type="stmt"/>
1025
+ <line num="1" count="17" type="stmt"/>
1026
+ <line num="2" count="17" type="stmt"/>
1027
+ <line num="3" count="17" type="stmt"/>
1028
+ <line num="5" count="17" type="stmt"/>
1029
+ <line num="7" count="17" type="stmt"/>
1030
+ <line num="13" count="17" type="stmt"/>
1021
1031
  </file>
1022
1032
  </package>
1023
1033
  <package name="src.api.routes.validation">
1024
1034
  <metrics statements="13" coveredstatements="13" conditionals="4" coveredconditionals="4" methods="2" coveredmethods="2"/>
1025
1035
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/validation/index.ts">
1026
1036
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1027
- <line num="1" count="18" type="stmt"/>
1037
+ <line num="1" count="17" type="stmt"/>
1028
1038
  </file>
1029
1039
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/validation/users.ts">
1030
1040
  <metrics statements="12" coveredstatements="12" conditionals="4" coveredconditionals="4" methods="2" coveredmethods="2"/>
1031
- <line num="1" count="18" type="stmt"/>
1032
- <line num="2" count="18" type="stmt"/>
1033
- <line num="4" count="18" type="stmt"/>
1034
- <line num="20" count="18" type="cond" truecount="1" falsecount="0"/>
1035
- <line num="21" count="54" type="cond" truecount="1" falsecount="0"/>
1036
- <line num="22" count="18" type="stmt"/>
1037
- <line num="28" count="54" type="stmt"/>
1038
- <line num="31" count="18" type="cond" truecount="1" falsecount="0"/>
1039
- <line num="32" count="18" type="cond" truecount="1" falsecount="0"/>
1040
- <line num="33" count="18" type="stmt"/>
1041
- <line num="39" count="18" type="stmt"/>
1042
- <line num="49" count="18" type="stmt"/>
1041
+ <line num="1" count="17" type="stmt"/>
1042
+ <line num="2" count="17" type="stmt"/>
1043
+ <line num="4" count="17" type="stmt"/>
1044
+ <line num="20" count="17" type="cond" truecount="1" falsecount="0"/>
1045
+ <line num="21" count="51" type="cond" truecount="1" falsecount="0"/>
1046
+ <line num="22" count="17" type="stmt"/>
1047
+ <line num="28" count="51" type="stmt"/>
1048
+ <line num="31" count="17" type="cond" truecount="1" falsecount="0"/>
1049
+ <line num="32" count="17" type="cond" truecount="1" falsecount="0"/>
1050
+ <line num="33" count="17" type="stmt"/>
1051
+ <line num="39" count="17" type="stmt"/>
1052
+ <line num="49" count="17" type="stmt"/>
1043
1053
  </file>
1044
1054
  </package>
1045
1055
  <package name="src.constants">
1046
- <metrics statements="45" coveredstatements="45" conditionals="12" coveredconditionals="12" methods="6" coveredmethods="6"/>
1056
+ <metrics statements="39" coveredstatements="39" conditionals="10" coveredconditionals="10" methods="5" coveredmethods="5"/>
1047
1057
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/constants/index.ts">
1048
- <metrics statements="45" coveredstatements="45" conditionals="12" coveredconditionals="12" methods="6" coveredmethods="6"/>
1049
- <line num="1" count="18" type="stmt"/>
1050
- <line num="3" count="18" type="stmt"/>
1051
- <line num="6" count="18" type="cond" truecount="2" falsecount="0"/>
1052
- <line num="7" count="18" type="stmt"/>
1053
- <line num="8" count="18" type="stmt"/>
1054
- <line num="11" count="18" type="stmt"/>
1055
- <line num="13" count="18" type="cond" truecount="2" falsecount="0"/>
1056
- <line num="14" count="18" type="stmt"/>
1057
- <line num="15" count="18" type="stmt"/>
1058
- <line num="18" count="18" type="cond" truecount="2" falsecount="0"/>
1059
- <line num="19" count="18" type="stmt"/>
1060
- <line num="22" count="18" type="cond" truecount="2" falsecount="0"/>
1061
- <line num="23" count="18" type="stmt"/>
1062
- <line num="24" count="18" type="stmt"/>
1063
- <line num="25" count="18" type="stmt"/>
1064
- <line num="26" count="18" type="stmt"/>
1065
- <line num="27" count="18" type="stmt"/>
1066
- <line num="30" count="18" type="cond" truecount="2" falsecount="0"/>
1067
- <line num="31" count="18" type="stmt"/>
1068
- <line num="32" count="18" type="stmt"/>
1069
- <line num="33" count="18" type="stmt"/>
1070
- <line num="34" count="18" type="stmt"/>
1071
- <line num="35" count="18" type="stmt"/>
1072
- <line num="38" count="18" type="cond" truecount="2" falsecount="0"/>
1073
- <line num="39" count="18" type="stmt"/>
1074
- <line num="40" count="18" type="stmt"/>
1075
- <line num="41" count="18" type="stmt"/>
1076
- <line num="42" count="18" type="stmt"/>
1077
- <line num="43" count="18" type="stmt"/>
1078
- <line num="44" count="18" type="stmt"/>
1079
- <line num="45" count="18" type="stmt"/>
1080
- <line num="46" count="18" type="stmt"/>
1081
- <line num="47" count="18" type="stmt"/>
1082
- <line num="48" count="18" type="stmt"/>
1083
- <line num="49" count="18" type="stmt"/>
1084
- <line num="50" count="18" type="stmt"/>
1085
- <line num="51" count="18" type="stmt"/>
1086
- <line num="52" count="18" type="stmt"/>
1087
- <line num="53" count="18" type="stmt"/>
1088
- <line num="54" count="18" type="stmt"/>
1089
- <line num="55" count="18" type="stmt"/>
1090
- <line num="58" count="18" type="stmt"/>
1091
- <line num="101" count="18" type="stmt"/>
1092
- <line num="183" count="18" type="stmt"/>
1093
- <line num="184" count="18" type="stmt"/>
1058
+ <metrics statements="39" coveredstatements="39" conditionals="10" coveredconditionals="10" methods="5" coveredmethods="5"/>
1059
+ <line num="1" count="17" type="stmt"/>
1060
+ <line num="3" count="17" type="stmt"/>
1061
+ <line num="6" count="17" type="cond" truecount="2" falsecount="0"/>
1062
+ <line num="7" count="17" type="stmt"/>
1063
+ <line num="8" count="17" type="stmt"/>
1064
+ <line num="11" count="17" type="stmt"/>
1065
+ <line num="13" count="17" type="cond" truecount="2" falsecount="0"/>
1066
+ <line num="14" count="17" type="stmt"/>
1067
+ <line num="15" count="17" type="stmt"/>
1068
+ <line num="18" count="17" type="cond" truecount="2" falsecount="0"/>
1069
+ <line num="19" count="17" type="stmt"/>
1070
+ <line num="22" count="17" type="cond" truecount="2" falsecount="0"/>
1071
+ <line num="23" count="17" type="stmt"/>
1072
+ <line num="24" count="17" type="stmt"/>
1073
+ <line num="25" count="17" type="stmt"/>
1074
+ <line num="26" count="17" type="stmt"/>
1075
+ <line num="27" count="17" type="stmt"/>
1076
+ <line num="30" count="17" type="cond" truecount="2" falsecount="0"/>
1077
+ <line num="31" count="17" type="stmt"/>
1078
+ <line num="32" count="17" type="stmt"/>
1079
+ <line num="33" count="17" type="stmt"/>
1080
+ <line num="34" count="17" type="stmt"/>
1081
+ <line num="35" count="17" type="stmt"/>
1082
+ <line num="36" count="17" type="stmt"/>
1083
+ <line num="37" count="17" type="stmt"/>
1084
+ <line num="38" count="17" type="stmt"/>
1085
+ <line num="39" count="17" type="stmt"/>
1086
+ <line num="40" count="17" type="stmt"/>
1087
+ <line num="41" count="17" type="stmt"/>
1088
+ <line num="42" count="17" type="stmt"/>
1089
+ <line num="43" count="17" type="stmt"/>
1090
+ <line num="44" count="17" type="stmt"/>
1091
+ <line num="45" count="17" type="stmt"/>
1092
+ <line num="46" count="17" type="stmt"/>
1093
+ <line num="47" count="17" type="stmt"/>
1094
+ <line num="50" count="17" type="stmt"/>
1095
+ <line num="93" count="17" type="stmt"/>
1096
+ <line num="175" count="17" type="stmt"/>
1097
+ <line num="176" count="17" type="stmt"/>
1094
1098
  </file>
1095
1099
  </package>
1096
1100
  <package name="src.constants.templates">
1097
- <metrics statements="29" coveredstatements="28" conditionals="9" coveredconditionals="8" methods="7" coveredmethods="6"/>
1101
+ <metrics statements="29" coveredstatements="25" conditionals="9" coveredconditionals="5" methods="7" coveredmethods="5"/>
1098
1102
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/constants/templates/index.ts">
1099
- <metrics statements="29" coveredstatements="28" conditionals="9" coveredconditionals="8" methods="7" coveredmethods="6"/>
1100
- <line num="1" count="18" type="stmt"/>
1101
- <line num="2" count="18" type="stmt"/>
1102
- <line num="8" count="18" type="stmt"/>
1103
- <line num="9" count="18" type="stmt"/>
1104
- <line num="12" count="18" type="stmt"/>
1105
- <line num="26" count="18" type="stmt"/>
1106
- <line num="28" count="16" type="cond" truecount="2" falsecount="0"/>
1103
+ <metrics statements="29" coveredstatements="25" conditionals="9" coveredconditionals="5" methods="7" coveredmethods="5"/>
1104
+ <line num="1" count="17" type="stmt"/>
1105
+ <line num="2" count="17" type="stmt"/>
1106
+ <line num="8" count="17" type="stmt"/>
1107
+ <line num="9" count="17" type="stmt"/>
1108
+ <line num="12" count="17" type="stmt"/>
1109
+ <line num="26" count="17" type="stmt"/>
1110
+ <line num="28" count="14" type="cond" truecount="1" falsecount="1"/>
1107
1111
  <line num="30" count="14" type="stmt"/>
1108
1112
  <line num="31" count="14" type="stmt"/>
1109
- <line num="33" count="2" type="stmt"/>
1110
- <line num="34" count="2" type="stmt"/>
1111
- <line num="36" count="16" type="stmt"/>
1112
- <line num="38" count="162" type="cond" truecount="1" falsecount="0"/>
1113
- <line num="39" count="2" type="stmt"/>
1114
- <line num="41" count="78" type="cond" truecount="1" falsecount="0"/>
1115
- <line num="42" count="78" type="stmt"/>
1116
- <line num="49" count="16" type="stmt"/>
1117
- <line num="52" count="18" type="cond" truecount="1" falsecount="0"/>
1118
- <line num="57" count="16" type="stmt"/>
1119
- <line num="58" count="16" type="stmt"/>
1120
- <line num="63" count="16" type="stmt"/>
1121
- <line num="65" count="16" type="cond" truecount="0" falsecount="1"/>
1113
+ <line num="33" count="0" type="stmt"/>
1114
+ <line num="34" count="0" type="stmt"/>
1115
+ <line num="36" count="14" type="stmt"/>
1116
+ <line num="38" count="140" type="cond" truecount="0" falsecount="1"/>
1117
+ <line num="39" count="0" type="stmt"/>
1118
+ <line num="41" count="70" type="cond" truecount="1" falsecount="0"/>
1119
+ <line num="42" count="70" type="stmt"/>
1120
+ <line num="49" count="14" type="stmt"/>
1121
+ <line num="52" count="17" type="cond" truecount="0" falsecount="1"/>
1122
+ <line num="57" count="14" type="stmt"/>
1123
+ <line num="58" count="14" type="stmt"/>
1124
+ <line num="63" count="14" type="stmt"/>
1125
+ <line num="65" count="14" type="cond" truecount="0" falsecount="1"/>
1122
1126
  <line num="66" count="0" type="stmt"/>
1123
- <line num="68" count="16" type="cond" truecount="1" falsecount="0"/>
1127
+ <line num="68" count="14" type="cond" truecount="1" falsecount="0"/>
1124
1128
  <line num="69" count="14" type="stmt"/>
1125
- <line num="71" count="16" type="stmt"/>
1126
- <line num="74" count="18" type="stmt"/>
1129
+ <line num="71" count="14" type="stmt"/>
1130
+ <line num="74" count="17" type="stmt"/>
1127
1131
  <line num="75" count="14" type="stmt"/>
1128
1132
  <line num="76" count="26" type="stmt"/>
1129
1133
  </file>
@@ -1132,22 +1136,22 @@
1132
1136
  <metrics statements="7" coveredstatements="7" conditionals="3" coveredconditionals="3" methods="1" coveredmethods="1"/>
1133
1137
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/db/index.ts">
1134
1138
  <metrics statements="7" coveredstatements="7" conditionals="3" coveredconditionals="3" methods="1" coveredmethods="1"/>
1135
- <line num="1" count="18" type="stmt"/>
1136
- <line num="2" count="18" type="stmt"/>
1137
- <line num="4" count="18" type="stmt"/>
1138
- <line num="5" count="36" type="stmt"/>
1139
- <line num="6" count="36" type="cond" truecount="3" falsecount="0"/>
1140
- <line num="7" count="36" type="stmt"/>
1141
- <line num="9" count="36" type="stmt"/>
1139
+ <line num="1" count="17" type="stmt"/>
1140
+ <line num="2" count="17" type="stmt"/>
1141
+ <line num="4" count="17" type="stmt"/>
1142
+ <line num="5" count="34" type="stmt"/>
1143
+ <line num="6" count="34" type="cond" truecount="3" falsecount="0"/>
1144
+ <line num="7" count="34" type="stmt"/>
1145
+ <line num="9" count="34" type="stmt"/>
1142
1146
  </file>
1143
1147
  </package>
1144
1148
  <package name="src.middleware">
1145
1149
  <metrics statements="8" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="2"/>
1146
1150
  <file name="cloudRestricted.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/middleware/cloudRestricted.ts">
1147
1151
  <metrics statements="8" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="2"/>
1148
- <line num="1" count="18" type="stmt"/>
1149
- <line num="2" count="18" type="stmt"/>
1150
- <line num="9" count="18" type="stmt"/>
1152
+ <line num="1" count="17" type="stmt"/>
1153
+ <line num="2" count="17" type="stmt"/>
1154
+ <line num="9" count="17" type="stmt"/>
1151
1155
  <line num="10" count="6" type="cond" truecount="3" falsecount="0"/>
1152
1156
  <line num="11" count="6" type="stmt"/>
1153
1157
  <line num="12" count="6" type="cond" truecount="0" falsecount="1"/>
@@ -1159,25 +1163,25 @@
1159
1163
  <metrics statements="22" coveredstatements="16" conditionals="4" coveredconditionals="2" methods="7" coveredmethods="1"/>
1160
1164
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/migrations/index.ts">
1161
1165
  <metrics statements="22" coveredstatements="16" conditionals="4" coveredconditionals="2" methods="7" coveredmethods="1"/>
1162
- <line num="1" count="18" type="stmt"/>
1163
- <line num="2" count="18" type="stmt"/>
1164
- <line num="9" count="18" type="stmt"/>
1165
- <line num="12" count="18" type="stmt"/>
1166
- <line num="18" count="18" type="stmt"/>
1167
- <line num="19" count="18" type="stmt"/>
1168
- <line num="20" count="18" type="stmt"/>
1169
- <line num="22" count="18" type="stmt"/>
1170
- <line num="23" count="144" type="cond" truecount="1" falsecount="0"/>
1171
- <line num="26" count="18" type="cond" truecount="1" falsecount="0"/>
1172
- <line num="27" count="18" type="stmt"/>
1173
- <line num="32" count="18" type="stmt"/>
1174
- <line num="37" count="18" type="stmt"/>
1175
- <line num="40" count="18" type="stmt"/>
1176
- <line num="42" count="18" type="stmt"/>
1166
+ <line num="1" count="17" type="stmt"/>
1167
+ <line num="2" count="17" type="stmt"/>
1168
+ <line num="9" count="17" type="stmt"/>
1169
+ <line num="12" count="17" type="stmt"/>
1170
+ <line num="18" count="17" type="stmt"/>
1171
+ <line num="19" count="17" type="stmt"/>
1172
+ <line num="20" count="17" type="stmt"/>
1173
+ <line num="22" count="17" type="stmt"/>
1174
+ <line num="23" count="136" type="cond" truecount="1" falsecount="0"/>
1175
+ <line num="26" count="17" type="cond" truecount="1" falsecount="0"/>
1176
+ <line num="27" count="17" type="stmt"/>
1177
+ <line num="32" count="17" type="stmt"/>
1178
+ <line num="37" count="17" type="stmt"/>
1179
+ <line num="40" count="17" type="stmt"/>
1180
+ <line num="42" count="17" type="stmt"/>
1177
1181
  <line num="43" count="0" type="cond" truecount="0" falsecount="2"/>
1178
1182
  <line num="44" count="0" type="stmt"/>
1179
1183
  <line num="46" count="0" type="stmt"/>
1180
- <line num="50" count="18" type="stmt"/>
1184
+ <line num="50" count="17" type="stmt"/>
1181
1185
  <line num="51" count="0" type="stmt"/>
1182
1186
  <line num="58" count="0" type="stmt"/>
1183
1187
  <line num="59" count="0" type="stmt"/>
@@ -1187,8 +1191,8 @@
1187
1191
  <metrics statements="7" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
1188
1192
  <file name="globalInfoSyncUsers.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/migrations/functions/globalInfoSyncUsers.ts">
1189
1193
  <metrics statements="7" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
1190
- <line num="2" count="18" type="stmt"/>
1191
- <line num="11" count="18" type="stmt"/>
1194
+ <line num="2" count="17" type="stmt"/>
1195
+ <line num="11" count="17" type="stmt"/>
1192
1196
  <line num="12" count="0" type="stmt"/>
1193
1197
  <line num="13" count="0" type="stmt"/>
1194
1198
  <line num="14" count="0" type="stmt"/>
@@ -1200,19 +1204,19 @@
1200
1204
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1201
1205
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/index.ts">
1202
1206
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1203
- <line num="1" count="18" type="stmt"/>
1204
- <line num="2" count="18" type="stmt"/>
1205
- <line num="4" count="18" type="stmt"/>
1207
+ <line num="1" count="17" type="stmt"/>
1208
+ <line num="2" count="17" type="stmt"/>
1209
+ <line num="4" count="17" type="stmt"/>
1206
1210
  </file>
1207
1211
  </package>
1208
1212
  <package name="src.sdk.accounts">
1209
1213
  <metrics statements="30" coveredstatements="26" conditionals="5" coveredconditionals="2" methods="13" coveredmethods="13"/>
1210
1214
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/accounts/accounts.ts">
1211
1215
  <metrics statements="29" coveredstatements="25" conditionals="5" coveredconditionals="2" methods="13" coveredmethods="13"/>
1212
- <line num="2" count="18" type="stmt"/>
1213
- <line num="10" count="18" type="stmt"/>
1216
+ <line num="2" count="17" type="stmt"/>
1217
+ <line num="10" count="17" type="stmt"/>
1214
1218
  <line num="11" count="6" type="stmt"/>
1215
- <line num="14" count="18" type="stmt"/>
1219
+ <line num="14" count="17" type="stmt"/>
1216
1220
  <line num="16" count="3" type="stmt"/>
1217
1221
  <line num="17" count="3" type="stmt"/>
1218
1222
  <line num="18" count="3" type="stmt"/>
@@ -1221,7 +1225,7 @@
1221
1225
  <line num="22" count="3" type="stmt"/>
1222
1226
  <line num="23" count="3" type="stmt"/>
1223
1227
  <line num="24" count="3" type="stmt"/>
1224
- <line num="28" count="18" type="stmt"/>
1228
+ <line num="28" count="17" type="stmt"/>
1225
1229
  <line num="30" count="7" type="stmt"/>
1226
1230
  <line num="31" count="7" type="stmt"/>
1227
1231
  <line num="32" count="7" type="stmt"/>
@@ -1229,7 +1233,7 @@
1229
1233
  <line num="35" count="5" type="cond" truecount="1" falsecount="1"/>
1230
1234
  <line num="37" count="5" type="stmt"/>
1231
1235
  <line num="39" count="0" type="stmt"/>
1232
- <line num="45" count="18" type="stmt"/>
1236
+ <line num="45" count="17" type="stmt"/>
1233
1237
  <line num="46" count="2" type="stmt"/>
1234
1238
  <line num="47" count="2" type="stmt"/>
1235
1239
  <line num="48" count="2" type="cond" truecount="1" falsecount="0"/>
@@ -1241,45 +1245,45 @@
1241
1245
  </file>
1242
1246
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/accounts/index.ts">
1243
1247
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1244
- <line num="1" count="18" type="stmt"/>
1248
+ <line num="1" count="17" type="stmt"/>
1245
1249
  </file>
1246
1250
  </package>
1247
1251
  <package name="src.sdk.users">
1248
- <metrics statements="332" coveredstatements="301" conditionals="121" coveredconditionals="103" methods="78" coveredmethods="72"/>
1252
+ <metrics statements="328" coveredstatements="294" conditionals="121" coveredconditionals="103" methods="76" coveredmethods="67"/>
1249
1253
  <file name="events.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/events.ts">
1250
1254
  <metrics statements="69" coveredstatements="68" conditionals="37" coveredconditionals="36" methods="18" coveredmethods="18"/>
1251
- <line num="1" count="18" type="stmt"/>
1252
- <line num="2" count="18" type="stmt"/>
1253
- <line num="5" count="18" type="stmt"/>
1255
+ <line num="1" count="17" type="stmt"/>
1256
+ <line num="2" count="17" type="stmt"/>
1257
+ <line num="5" count="17" type="stmt"/>
1254
1258
  <line num="6" count="6" type="stmt"/>
1255
1259
  <line num="8" count="6" type="cond" truecount="1" falsecount="0"/>
1256
1260
  <line num="9" count="4" type="stmt"/>
1257
1261
  <line num="12" count="6" type="cond" truecount="1" falsecount="0"/>
1258
1262
  <line num="13" count="2" type="stmt"/>
1259
- <line num="17" count="18" type="stmt"/>
1260
- <line num="21" count="95" type="stmt"/>
1261
- <line num="22" count="95" type="stmt"/>
1262
- <line num="24" count="91" type="cond" truecount="3" falsecount="0"/>
1263
- <line num="25" count="82" type="stmt"/>
1264
- <line num="30" count="18" type="stmt"/>
1265
- <line num="34" count="95" type="stmt"/>
1266
- <line num="35" count="95" type="cond" truecount="1" falsecount="0"/>
1267
- <line num="36" count="84" type="stmt"/>
1263
+ <line num="17" count="17" type="stmt"/>
1264
+ <line num="21" count="92" type="stmt"/>
1265
+ <line num="22" count="92" type="stmt"/>
1266
+ <line num="24" count="10" type="cond" truecount="3" falsecount="0"/>
1267
+ <line num="25" count="9" type="stmt"/>
1268
+ <line num="30" count="17" type="stmt"/>
1269
+ <line num="34" count="92" type="stmt"/>
1270
+ <line num="35" count="92" type="cond" truecount="1" falsecount="0"/>
1271
+ <line num="36" count="81" type="stmt"/>
1268
1272
  <line num="38" count="11" type="stmt"/>
1269
- <line num="40" count="13" type="cond" truecount="3" falsecount="0"/>
1270
- <line num="41" count="4" type="stmt"/>
1271
- <line num="46" count="95" type="stmt"/>
1272
- <line num="47" count="95" type="stmt"/>
1273
- <line num="48" count="95" type="cond" truecount="4" falsecount="0"/>
1274
- <line num="50" count="95" type="stmt"/>
1275
- <line num="51" count="95" type="stmt"/>
1276
- <line num="54" count="18" type="stmt"/>
1277
- <line num="57" count="95" type="stmt"/>
1278
- <line num="58" count="95" type="stmt"/>
1279
- <line num="60" count="95" type="cond" truecount="3" falsecount="0"/>
1280
- <line num="61" count="95" type="stmt"/>
1281
- <line num="63" count="95" type="stmt"/>
1282
- <line num="65" count="95" type="cond" truecount="2" falsecount="0"/>
1273
+ <line num="40" count="4" type="cond" truecount="3" falsecount="0"/>
1274
+ <line num="41" count="3" type="stmt"/>
1275
+ <line num="46" count="92" type="stmt"/>
1276
+ <line num="47" count="92" type="stmt"/>
1277
+ <line num="48" count="92" type="cond" truecount="4" falsecount="0"/>
1278
+ <line num="50" count="92" type="stmt"/>
1279
+ <line num="51" count="92" type="stmt"/>
1280
+ <line num="54" count="17" type="stmt"/>
1281
+ <line num="57" count="92" type="stmt"/>
1282
+ <line num="58" count="92" type="stmt"/>
1283
+ <line num="60" count="92" type="cond" truecount="3" falsecount="0"/>
1284
+ <line num="61" count="92" type="stmt"/>
1285
+ <line num="63" count="92" type="stmt"/>
1286
+ <line num="65" count="92" type="cond" truecount="2" falsecount="0"/>
1283
1287
  <line num="66" count="11" type="stmt"/>
1284
1288
  <line num="68" count="11" type="cond" truecount="1" falsecount="0"/>
1285
1289
  <line num="69" count="2" type="stmt"/>
@@ -1287,29 +1291,29 @@
1287
1291
  <line num="73" count="1" type="stmt"/>
1288
1292
  <line num="76" count="11" type="cond" truecount="1" falsecount="0"/>
1289
1293
  <line num="81" count="1" type="stmt"/>
1290
- <line num="84" count="84" type="stmt"/>
1291
- <line num="87" count="95" type="cond" truecount="1" falsecount="0"/>
1292
- <line num="88" count="56" type="stmt"/>
1293
- <line num="91" count="95" type="cond" truecount="1" falsecount="0"/>
1294
- <line num="92" count="48" type="stmt"/>
1295
- <line num="95" count="95" type="stmt"/>
1296
- <line num="98" count="123" type="cond" truecount="2" falsecount="0"/>
1297
- <line num="99" count="123" type="cond" truecount="2" falsecount="0"/>
1298
- <line num="101" count="18" type="stmt"/>
1299
- <line num="102" count="95" type="stmt"/>
1300
- <line num="105" count="18" type="stmt"/>
1294
+ <line num="84" count="81" type="stmt"/>
1295
+ <line num="87" count="92" type="cond" truecount="1" falsecount="0"/>
1296
+ <line num="88" count="54" type="stmt"/>
1297
+ <line num="91" count="92" type="cond" truecount="1" falsecount="0"/>
1298
+ <line num="92" count="46" type="stmt"/>
1299
+ <line num="95" count="92" type="stmt"/>
1300
+ <line num="98" count="120" type="cond" truecount="2" falsecount="0"/>
1301
+ <line num="99" count="120" type="cond" truecount="2" falsecount="0"/>
1302
+ <line num="101" count="17" type="stmt"/>
1303
+ <line num="102" count="92" type="stmt"/>
1304
+ <line num="105" count="17" type="stmt"/>
1301
1305
  <line num="106" count="11" type="stmt"/>
1302
- <line num="109" count="18" type="stmt"/>
1303
- <line num="110" count="95" type="stmt"/>
1304
- <line num="113" count="18" type="stmt"/>
1306
+ <line num="109" count="17" type="stmt"/>
1307
+ <line num="110" count="92" type="stmt"/>
1308
+ <line num="113" count="17" type="stmt"/>
1305
1309
  <line num="114" count="11" type="stmt"/>
1306
- <line num="120" count="18" type="stmt"/>
1307
- <line num="126" count="190" type="cond" truecount="1" falsecount="0"/>
1308
- <line num="127" count="84" type="stmt"/>
1309
- <line num="131" count="106" type="cond" truecount="3" falsecount="0"/>
1310
+ <line num="120" count="17" type="stmt"/>
1311
+ <line num="126" count="184" type="cond" truecount="1" falsecount="0"/>
1312
+ <line num="127" count="82" type="stmt"/>
1313
+ <line num="131" count="102" type="cond" truecount="3" falsecount="0"/>
1310
1314
  <line num="132" count="2" type="stmt"/>
1311
- <line num="136" count="104" type="stmt"/>
1312
- <line num="142" count="18" type="stmt"/>
1315
+ <line num="136" count="100" type="stmt"/>
1316
+ <line num="142" count="17" type="stmt"/>
1313
1317
  <line num="148" count="22" type="cond" truecount="1" falsecount="0"/>
1314
1318
  <line num="149" count="5" type="stmt"/>
1315
1319
  <line num="153" count="17" type="cond" truecount="0" falsecount="1"/>
@@ -1320,436 +1324,429 @@
1320
1324
  </file>
1321
1325
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/index.ts">
1322
1326
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1323
- <line num="1" count="18" type="stmt"/>
1327
+ <line num="1" count="17" type="stmt"/>
1324
1328
  </file>
1325
1329
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/users.ts">
1326
- <metrics statements="262" coveredstatements="232" conditionals="84" coveredconditionals="67" methods="60" coveredmethods="54"/>
1327
- <line num="1" count="18" type="stmt"/>
1328
- <line num="2" count="18" type="stmt"/>
1329
- <line num="3" count="18" type="stmt"/>
1330
- <line num="4" count="18" type="stmt"/>
1331
- <line num="19" count="18" type="stmt"/>
1332
- <line num="35" count="18" type="stmt"/>
1333
- <line num="36" count="18" type="stmt"/>
1334
- <line num="37" count="18" type="stmt"/>
1335
- <line num="39" count="18" type="stmt"/>
1336
- <line num="41" count="18" type="stmt"/>
1337
- <line num="42" count="1" type="stmt"/>
1338
- <line num="43" count="1" type="stmt"/>
1339
- <line num="48" count="2" type="stmt"/>
1340
- <line num="51" count="18" type="stmt"/>
1330
+ <metrics statements="258" coveredstatements="225" conditionals="84" coveredconditionals="67" methods="58" coveredmethods="49"/>
1331
+ <line num="1" count="17" type="stmt"/>
1332
+ <line num="2" count="17" type="stmt"/>
1333
+ <line num="3" count="17" type="stmt"/>
1334
+ <line num="4" count="17" type="stmt"/>
1335
+ <line num="19" count="17" type="stmt"/>
1336
+ <line num="34" count="17" type="stmt"/>
1337
+ <line num="35" count="17" type="stmt"/>
1338
+ <line num="36" count="17" type="stmt"/>
1339
+ <line num="38" count="17" type="stmt"/>
1340
+ <line num="40" count="17" type="stmt"/>
1341
+ <line num="41" count="0" type="stmt"/>
1342
+ <line num="42" count="0" type="stmt"/>
1343
+ <line num="47" count="0" type="stmt"/>
1344
+ <line num="50" count="17" type="stmt"/>
1345
+ <line num="51" count="0" type="stmt"/>
1341
1346
  <line num="52" count="0" type="stmt"/>
1342
- <line num="53" count="0" type="stmt"/>
1343
- <line num="58" count="18" type="cond" truecount="0" falsecount="1"/>
1347
+ <line num="57" count="17" type="cond" truecount="0" falsecount="1"/>
1348
+ <line num="62" count="0" type="stmt"/>
1344
1349
  <line num="63" count="0" type="stmt"/>
1345
- <line num="64" count="0" type="stmt"/>
1346
- <line num="66" count="0" type="stmt"/>
1347
- <line num="71" count="0" type="cond" truecount="0" falsecount="1"/>
1348
- <line num="72" count="0" type="stmt"/>
1349
- <line num="76" count="0" type="stmt"/>
1350
- <line num="78" count="0" type="cond" truecount="0" falsecount="2"/>
1350
+ <line num="65" count="0" type="stmt"/>
1351
+ <line num="70" count="0" type="cond" truecount="0" falsecount="1"/>
1352
+ <line num="71" count="0" type="stmt"/>
1353
+ <line num="75" count="0" type="stmt"/>
1354
+ <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
1355
+ <line num="78" count="0" type="stmt"/>
1351
1356
  <line num="79" count="0" type="stmt"/>
1352
- <line num="80" count="0" type="stmt"/>
1353
- <line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
1357
+ <line num="80" count="0" type="cond" truecount="0" falsecount="2"/>
1358
+ <line num="81" count="0" type="stmt"/>
1354
1359
  <line num="82" count="0" type="stmt"/>
1355
- <line num="83" count="0" type="stmt"/>
1360
+ <line num="85" count="0" type="stmt"/>
1356
1361
  <line num="86" count="0" type="stmt"/>
1357
- <line num="87" count="0" type="stmt"/>
1358
- <line num="89" count="0" type="stmt"/>
1359
- <line num="99" count="18" type="stmt"/>
1360
- <line num="100" count="10" type="stmt"/>
1361
- <line num="101" count="10" type="stmt"/>
1362
- <line num="102" count="10" type="cond" truecount="1" falsecount="0"/>
1363
- <line num="103" count="10" type="stmt"/>
1364
- <line num="105" count="10" type="stmt"/>
1365
- <line num="114" count="18" type="stmt"/>
1366
- <line num="122" count="95" type="stmt"/>
1367
- <line num="123" count="95" type="stmt"/>
1368
- <line num="124" count="95" type="stmt"/>
1369
- <line num="127" count="95" type="cond" truecount="2" falsecount="0"/>
1370
- <line num="128" count="93" type="cond" truecount="1" falsecount="1"/>
1371
- <line num="129" count="2" type="cond" truecount="2" falsecount="0"/>
1372
- <line num="130" count="1" type="stmt"/>
1373
- <line num="131" count="1" type="cond" truecount="0" falsecount="1"/>
1374
- <line num="132" count="0" type="stmt"/>
1375
- <line num="135" count="95" type="cond" truecount="2" falsecount="0"/>
1376
- <line num="137" count="95" type="stmt"/>
1377
- <line num="146" count="95" type="cond" truecount="1" falsecount="0"/>
1378
- <line num="147" count="1" type="stmt"/>
1379
- <line num="150" count="95" type="cond" truecount="1" falsecount="0"/>
1380
- <line num="151" count="84" type="stmt"/>
1381
- <line num="154" count="95" type="stmt"/>
1382
- <line num="158" count="18" type="stmt"/>
1383
- <line num="160" count="91" type="stmt"/>
1384
- <line num="163" count="91" type="stmt"/>
1385
- <line num="170" count="91" type="stmt"/>
1386
- <line num="173" count="91" type="stmt"/>
1387
- <line num="175" count="91" type="cond" truecount="1" falsecount="0"/>
1388
- <line num="176" count="91" type="stmt"/>
1389
- <line num="177" count="91" type="cond" truecount="3" falsecount="0"/>
1390
- <line num="178" count="1" type="stmt"/>
1391
- <line num="183" count="90" type="cond" truecount="3" falsecount="0"/>
1392
- <line num="184" count="90" type="stmt"/>
1393
- <line num="185" count="90" type="cond" truecount="4" falsecount="0"/>
1394
- <line num="186" count="1" type="stmt"/>
1395
- <line num="191" count="18" type="stmt"/>
1396
- <line num="194" count="94" type="stmt"/>
1397
- <line num="196" count="94" type="cond" truecount="1" falsecount="0"/>
1398
- <line num="197" count="87" type="stmt"/>
1399
- <line num="199" count="94" type="cond" truecount="1" falsecount="0"/>
1400
- <line num="200" count="87" type="stmt"/>
1401
- <line num="202" count="94" type="stmt"/>
1402
- <line num="203" count="94" type="stmt"/>
1403
- <line num="205" count="94" type="cond" truecount="1" falsecount="0"/>
1404
- <line num="207" count="94" type="cond" truecount="1" falsecount="2"/>
1405
- <line num="208" count="0" type="stmt"/>
1406
- <line num="212" count="94" type="cond" truecount="1" falsecount="0"/>
1407
- <line num="214" count="13" type="stmt"/>
1408
- <line num="215" count="13" type="stmt"/>
1409
- <line num="216" count="12" type="cond" truecount="3" falsecount="0"/>
1410
- <line num="217" count="1" type="stmt"/>
1411
- <line num="219" count="11" type="stmt"/>
1412
- <line num="221" count="2" type="cond" truecount="2" falsecount="0"/>
1413
- <line num="224" count="1" type="stmt"/>
1414
- <line num="229" count="93" type="cond" truecount="3" falsecount="0"/>
1415
- <line num="231" count="82" type="stmt"/>
1416
- <line num="232" count="82" type="cond" truecount="3" falsecount="0"/>
1417
- <line num="233" count="2" type="stmt"/>
1418
- <line num="237" count="91" type="stmt"/>
1419
- <line num="239" count="89" type="stmt"/>
1420
- <line num="241" count="89" type="cond" truecount="7" falsecount="0"/>
1421
- <line num="242" count="1" type="stmt"/>
1422
- <line num="243" count="1" type="stmt"/>
1423
- <line num="244" count="1" type="stmt"/>
1424
- <line num="249" count="89" type="stmt"/>
1425
- <line num="250" count="89" type="cond" truecount="1" falsecount="0"/>
1426
- <line num="251" count="77" type="stmt"/>
1427
- <line num="253" count="77" type="cond" truecount="0" falsecount="1"/>
1428
- <line num="254" count="0" type="stmt"/>
1429
- <line num="255" count="0" type="stmt"/>
1430
- <line num="260" count="89" type="stmt"/>
1431
- <line num="262" count="89" type="stmt"/>
1432
- <line num="263" count="89" type="stmt"/>
1433
- <line num="265" count="89" type="stmt"/>
1434
- <line num="266" count="89" type="stmt"/>
1435
- <line num="267" count="89" type="stmt"/>
1436
- <line num="269" count="89" type="stmt"/>
1437
- <line num="271" count="89" type="stmt"/>
1438
- <line num="273" count="89" type="stmt"/>
1439
- <line num="279" count="0" type="cond" truecount="0" falsecount="2"/>
1440
- <line num="280" count="0" type="stmt"/>
1441
- <line num="282" count="0" type="stmt"/>
1442
- <line num="287" count="18" type="stmt"/>
1443
- <line num="291" count="95" type="stmt"/>
1444
- <line num="292" count="95" type="cond" truecount="1" falsecount="0"/>
1445
- <line num="293" count="95" type="stmt"/>
1446
- <line num="294" count="42" type="stmt"/>
1447
- <line num="298" count="95" type="stmt"/>
1448
- <line num="302" count="18" type="stmt"/>
1449
- <line num="303" count="16" type="stmt"/>
1450
- <line num="304" count="11" type="stmt"/>
1451
- <line num="309" count="11" type="stmt"/>
1362
+ <line num="88" count="0" type="stmt"/>
1363
+ <line num="98" count="17" type="stmt"/>
1364
+ <line num="99" count="9" type="stmt"/>
1365
+ <line num="100" count="9" type="stmt"/>
1366
+ <line num="101" count="9" type="cond" truecount="1" falsecount="0"/>
1367
+ <line num="102" count="9" type="stmt"/>
1368
+ <line num="104" count="9" type="stmt"/>
1369
+ <line num="113" count="17" type="stmt"/>
1370
+ <line num="121" count="92" type="stmt"/>
1371
+ <line num="122" count="92" type="stmt"/>
1372
+ <line num="123" count="92" type="stmt"/>
1373
+ <line num="126" count="92" type="cond" truecount="2" falsecount="0"/>
1374
+ <line num="127" count="90" type="cond" truecount="1" falsecount="1"/>
1375
+ <line num="128" count="2" type="cond" truecount="2" falsecount="0"/>
1376
+ <line num="129" count="1" type="stmt"/>
1377
+ <line num="130" count="1" type="cond" truecount="0" falsecount="1"/>
1378
+ <line num="131" count="0" type="stmt"/>
1379
+ <line num="134" count="92" type="cond" truecount="2" falsecount="0"/>
1380
+ <line num="136" count="92" type="stmt"/>
1381
+ <line num="145" count="92" type="cond" truecount="1" falsecount="0"/>
1382
+ <line num="146" count="1" type="stmt"/>
1383
+ <line num="149" count="92" type="cond" truecount="1" falsecount="0"/>
1384
+ <line num="150" count="81" type="stmt"/>
1385
+ <line num="153" count="92" type="stmt"/>
1386
+ <line num="156" count="88" type="stmt"/>
1387
+ <line num="158" count="88" type="cond" truecount="1" falsecount="0"/>
1388
+ <line num="159" count="88" type="stmt"/>
1389
+ <line num="160" count="88" type="cond" truecount="3" falsecount="0"/>
1390
+ <line num="161" count="1" type="stmt"/>
1391
+ <line num="166" count="87" type="cond" truecount="3" falsecount="0"/>
1392
+ <line num="167" count="87" type="stmt"/>
1393
+ <line num="168" count="87" type="cond" truecount="4" falsecount="0"/>
1394
+ <line num="169" count="1" type="stmt"/>
1395
+ <line num="174" count="17" type="stmt"/>
1396
+ <line num="177" count="91" type="stmt"/>
1397
+ <line num="179" count="91" type="cond" truecount="1" falsecount="0"/>
1398
+ <line num="180" count="84" type="stmt"/>
1399
+ <line num="182" count="91" type="cond" truecount="1" falsecount="0"/>
1400
+ <line num="183" count="84" type="stmt"/>
1401
+ <line num="185" count="91" type="stmt"/>
1402
+ <line num="186" count="91" type="stmt"/>
1403
+ <line num="188" count="91" type="cond" truecount="1" falsecount="0"/>
1404
+ <line num="190" count="91" type="cond" truecount="1" falsecount="2"/>
1405
+ <line num="191" count="0" type="stmt"/>
1406
+ <line num="195" count="91" type="cond" truecount="1" falsecount="0"/>
1407
+ <line num="197" count="13" type="stmt"/>
1408
+ <line num="198" count="13" type="stmt"/>
1409
+ <line num="199" count="12" type="cond" truecount="3" falsecount="0"/>
1410
+ <line num="200" count="1" type="stmt"/>
1411
+ <line num="202" count="11" type="stmt"/>
1412
+ <line num="204" count="2" type="cond" truecount="2" falsecount="0"/>
1413
+ <line num="207" count="1" type="stmt"/>
1414
+ <line num="212" count="90" type="cond" truecount="3" falsecount="0"/>
1415
+ <line num="214" count="79" type="stmt"/>
1416
+ <line num="215" count="79" type="cond" truecount="3" falsecount="0"/>
1417
+ <line num="216" count="2" type="stmt"/>
1418
+ <line num="220" count="88" type="stmt"/>
1419
+ <line num="222" count="86" type="stmt"/>
1420
+ <line num="224" count="86" type="cond" truecount="7" falsecount="0"/>
1421
+ <line num="225" count="1" type="stmt"/>
1422
+ <line num="226" count="1" type="stmt"/>
1423
+ <line num="227" count="1" type="stmt"/>
1424
+ <line num="232" count="86" type="stmt"/>
1425
+ <line num="233" count="86" type="cond" truecount="1" falsecount="0"/>
1426
+ <line num="234" count="74" type="stmt"/>
1427
+ <line num="236" count="74" type="cond" truecount="0" falsecount="1"/>
1428
+ <line num="237" count="0" type="stmt"/>
1429
+ <line num="238" count="0" type="stmt"/>
1430
+ <line num="243" count="86" type="stmt"/>
1431
+ <line num="245" count="86" type="stmt"/>
1432
+ <line num="246" count="86" type="stmt"/>
1433
+ <line num="248" count="86" type="stmt"/>
1434
+ <line num="249" count="86" type="stmt"/>
1435
+ <line num="250" count="86" type="stmt"/>
1436
+ <line num="252" count="86" type="stmt"/>
1437
+ <line num="254" count="86" type="stmt"/>
1438
+ <line num="256" count="86" type="stmt"/>
1439
+ <line num="262" count="0" type="cond" truecount="0" falsecount="2"/>
1440
+ <line num="263" count="0" type="stmt"/>
1441
+ <line num="265" count="0" type="stmt"/>
1442
+ <line num="270" count="17" type="stmt"/>
1443
+ <line num="274" count="92" type="stmt"/>
1444
+ <line num="275" count="92" type="cond" truecount="1" falsecount="0"/>
1445
+ <line num="276" count="92" type="stmt"/>
1446
+ <line num="277" count="40" type="stmt"/>
1447
+ <line num="281" count="92" type="stmt"/>
1448
+ <line num="285" count="17" type="stmt"/>
1449
+ <line num="286" count="16" type="stmt"/>
1450
+ <line num="287" count="11" type="stmt"/>
1451
+ <line num="292" count="11" type="stmt"/>
1452
+ <line num="296" count="11" type="stmt"/>
1453
+ <line num="304" count="17" type="stmt"/>
1454
+ <line num="306" count="11" type="stmt"/>
1455
+ <line num="307" count="16" type="stmt"/>
1456
+ <line num="308" count="11" type="stmt"/>
1452
1457
  <line num="313" count="11" type="stmt"/>
1453
- <line num="321" count="18" type="stmt"/>
1454
- <line num="323" count="11" type="stmt"/>
1455
- <line num="324" count="16" type="stmt"/>
1458
+ <line num="316" count="11" type="stmt"/>
1459
+ <line num="323" count="17" type="stmt"/>
1456
1460
  <line num="325" count="11" type="stmt"/>
1457
- <line num="330" count="11" type="stmt"/>
1458
- <line num="333" count="11" type="stmt"/>
1459
- <line num="340" count="18" type="stmt"/>
1460
- <line num="342" count="11" type="stmt"/>
1461
- <line num="343" count="16" type="stmt"/>
1462
- <line num="344" count="11" type="stmt"/>
1463
- <line num="349" count="11" type="stmt"/>
1461
+ <line num="326" count="16" type="stmt"/>
1462
+ <line num="327" count="11" type="stmt"/>
1463
+ <line num="332" count="11" type="stmt"/>
1464
+ <line num="336" count="11" type="stmt"/>
1465
+ <line num="350" count="17" type="stmt"/>
1466
+ <line num="351" count="11" type="stmt"/>
1464
1467
  <line num="353" count="11" type="stmt"/>
1465
- <line num="367" count="18" type="stmt"/>
1466
- <line num="368" count="11" type="stmt"/>
1467
- <line num="370" count="11" type="stmt"/>
1468
- <line num="371" count="11" type="stmt"/>
1469
- <line num="373" count="11" type="stmt"/>
1470
- <line num="374" count="11" type="stmt"/>
1471
- <line num="376" count="11" type="stmt"/>
1472
- <line num="377" count="11" type="stmt"/>
1473
- <line num="379" count="11" type="stmt"/>
1474
- <line num="382" count="18" type="stmt"/>
1475
- <line num="385" count="6" type="stmt"/>
1476
- <line num="386" count="6" type="stmt"/>
1477
- <line num="388" count="6" type="stmt"/>
1478
- <line num="389" count="6" type="stmt"/>
1479
- <line num="391" count="10" type="stmt"/>
1468
+ <line num="354" count="11" type="stmt"/>
1469
+ <line num="356" count="11" type="stmt"/>
1470
+ <line num="357" count="11" type="stmt"/>
1471
+ <line num="359" count="11" type="stmt"/>
1472
+ <line num="360" count="11" type="stmt"/>
1473
+ <line num="362" count="11" type="stmt"/>
1474
+ <line num="365" count="17" type="stmt"/>
1475
+ <line num="368" count="6" type="stmt"/>
1476
+ <line num="369" count="6" type="stmt"/>
1477
+ <line num="371" count="6" type="stmt"/>
1478
+ <line num="372" count="6" type="stmt"/>
1479
+ <line num="374" count="10" type="stmt"/>
1480
+ <line num="375" count="6" type="stmt"/>
1481
+ <line num="376" count="6" type="stmt"/>
1482
+ <line num="378" count="6" type="stmt"/>
1483
+ <line num="379" count="10" type="cond" truecount="1" falsecount="0"/>
1484
+ <line num="381" count="6" type="stmt"/>
1485
+ <line num="385" count="4" type="stmt"/>
1486
+ <line num="389" count="4" type="stmt"/>
1487
+ <line num="391" count="6" type="stmt"/>
1480
1488
  <line num="392" count="6" type="stmt"/>
1481
- <line num="393" count="6" type="stmt"/>
1482
- <line num="395" count="6" type="stmt"/>
1483
- <line num="396" count="10" type="cond" truecount="1" falsecount="0"/>
1484
- <line num="398" count="6" type="stmt"/>
1485
- <line num="402" count="4" type="stmt"/>
1486
- <line num="406" count="4" type="stmt"/>
1487
- <line num="408" count="6" type="stmt"/>
1489
+ <line num="396" count="6" type="stmt"/>
1490
+ <line num="397" count="6" type="stmt"/>
1488
1491
  <line num="409" count="6" type="stmt"/>
1492
+ <line num="410" count="6" type="stmt"/>
1489
1493
  <line num="413" count="6" type="stmt"/>
1490
- <line num="414" count="6" type="stmt"/>
1491
- <line num="426" count="6" type="stmt"/>
1492
- <line num="427" count="6" type="stmt"/>
1494
+ <line num="416" count="6" type="stmt"/>
1495
+ <line num="417" count="6" type="stmt"/>
1496
+ <line num="418" count="6" type="stmt"/>
1497
+ <line num="421" count="6" type="stmt"/>
1498
+ <line num="422" count="6" type="stmt"/>
1499
+ <line num="429" count="6" type="cond" truecount="3" falsecount="0"/>
1493
1500
  <line num="430" count="6" type="stmt"/>
1494
- <line num="433" count="6" type="stmt"/>
1495
- <line num="434" count="6" type="stmt"/>
1501
+ <line num="431" count="6" type="stmt"/>
1502
+ <line num="432" count="6" type="stmt"/>
1503
+ <line num="433" count="0" type="stmt"/>
1496
1504
  <line num="435" count="6" type="stmt"/>
1497
1505
  <line num="438" count="6" type="stmt"/>
1498
- <line num="439" count="6" type="stmt"/>
1499
- <line num="446" count="6" type="cond" truecount="3" falsecount="0"/>
1500
- <line num="447" count="6" type="stmt"/>
1501
- <line num="448" count="6" type="stmt"/>
1502
- <line num="449" count="6" type="stmt"/>
1503
- <line num="450" count="0" type="stmt"/>
1504
- <line num="452" count="6" type="stmt"/>
1505
- <line num="455" count="6" type="stmt"/>
1506
- <line num="464" count="18" type="stmt"/>
1506
+ <line num="447" count="17" type="stmt"/>
1507
+ <line num="449" count="2" type="stmt"/>
1508
+ <line num="450" count="2" type="cond" truecount="3" falsecount="0"/>
1509
+ <line num="451" count="2" type="stmt"/>
1510
+ <line num="452" count="2" type="stmt"/>
1511
+ <line num="453" count="2" type="cond" truecount="0" falsecount="1"/>
1512
+ <line num="454" count="0" type="stmt"/>
1513
+ <line num="457" count="2" type="stmt"/>
1514
+ <line num="458" count="2" type="cond" truecount="1" falsecount="0"/>
1515
+ <line num="459" count="1" type="stmt"/>
1516
+ <line num="464" count="17" type="stmt"/>
1507
1517
  <line num="466" count="2" type="stmt"/>
1508
- <line num="467" count="2" type="cond" truecount="3" falsecount="0"/>
1509
- <line num="468" count="2" type="stmt"/>
1518
+ <line num="467" count="2" type="stmt"/>
1510
1519
  <line num="469" count="2" type="stmt"/>
1511
- <line num="470" count="2" type="cond" truecount="0" falsecount="1"/>
1512
- <line num="471" count="0" type="stmt"/>
1513
- <line num="474" count="2" type="stmt"/>
1514
- <line num="475" count="2" type="cond" truecount="1" falsecount="0"/>
1515
- <line num="476" count="1" type="stmt"/>
1516
- <line num="481" count="18" type="stmt"/>
1517
- <line num="483" count="2" type="stmt"/>
1518
- <line num="484" count="2" type="stmt"/>
1519
- <line num="486" count="2" type="stmt"/>
1520
- <line num="492" count="2" type="stmt"/>
1521
- <line num="493" count="2" type="cond" truecount="1" falsecount="0"/>
1522
- <line num="494" count="1" type="stmt"/>
1523
- <line num="496" count="1" type="stmt"/>
1524
- <line num="504" count="2" type="stmt"/>
1525
- <line num="508" count="2" type="stmt"/>
1526
- <line num="510" count="3" type="stmt"/>
1527
- <line num="515" count="3" type="stmt"/>
1528
- <line num="519" count="2" type="stmt"/>
1529
- <line num="520" count="2" type="stmt"/>
1530
- <line num="521" count="3" type="stmt"/>
1531
- <line num="526" count="2" type="stmt"/>
1532
- <line num="527" count="2" type="stmt"/>
1533
- <line num="528" count="3" type="stmt"/>
1534
- <line num="529" count="3" type="stmt"/>
1535
- <line num="533" count="2" type="stmt"/>
1536
- <line num="534" count="3" type="stmt"/>
1537
- <line num="535" count="3" type="cond" truecount="1" falsecount="1"/>
1538
- <line num="536" count="3" type="stmt"/>
1539
- <line num="538" count="0" type="stmt"/>
1540
- <line num="546" count="2" type="stmt"/>
1541
- <line num="549" count="18" type="stmt"/>
1542
- <line num="550" count="4" type="stmt"/>
1543
- <line num="551" count="4" type="stmt"/>
1544
- <line num="552" count="4" type="stmt"/>
1545
- <line num="554" count="4" type="cond" truecount="3" falsecount="0"/>
1546
- <line num="556" count="4" type="stmt"/>
1547
- <line num="557" count="4" type="stmt"/>
1548
- <line num="558" count="4" type="cond" truecount="1" falsecount="0"/>
1549
- <line num="559" count="1" type="cond" truecount="1" falsecount="1"/>
1550
- <line num="560" count="0" type="stmt"/>
1551
- <line num="562" count="1" type="stmt"/>
1552
- <line num="567" count="3" type="stmt"/>
1553
- <line num="569" count="3" type="stmt"/>
1554
- <line num="571" count="3" type="stmt"/>
1555
- <line num="572" count="3" type="stmt"/>
1556
- <line num="573" count="3" type="stmt"/>
1557
- <line num="575" count="3" type="stmt"/>
1558
- <line num="578" count="18" type="stmt"/>
1559
- <line num="579" count="3" type="stmt"/>
1560
- <line num="580" count="3" type="stmt"/>
1561
- <line num="581" count="3" type="stmt"/>
1562
- <line num="582" count="3" type="stmt"/>
1563
- <line num="583" count="3" type="stmt"/>
1564
- <line num="585" count="3" type="stmt"/>
1565
- <line num="588" count="18" type="stmt"/>
1566
- <line num="590" count="5" type="stmt"/>
1520
+ <line num="475" count="2" type="stmt"/>
1521
+ <line num="476" count="2" type="cond" truecount="1" falsecount="0"/>
1522
+ <line num="477" count="1" type="stmt"/>
1523
+ <line num="479" count="1" type="stmt"/>
1524
+ <line num="487" count="2" type="stmt"/>
1525
+ <line num="491" count="2" type="stmt"/>
1526
+ <line num="493" count="3" type="stmt"/>
1527
+ <line num="498" count="3" type="stmt"/>
1528
+ <line num="502" count="2" type="stmt"/>
1529
+ <line num="503" count="2" type="stmt"/>
1530
+ <line num="504" count="3" type="stmt"/>
1531
+ <line num="509" count="2" type="stmt"/>
1532
+ <line num="510" count="2" type="stmt"/>
1533
+ <line num="511" count="3" type="stmt"/>
1534
+ <line num="512" count="3" type="stmt"/>
1535
+ <line num="516" count="2" type="stmt"/>
1536
+ <line num="517" count="3" type="stmt"/>
1537
+ <line num="518" count="3" type="cond" truecount="1" falsecount="1"/>
1538
+ <line num="519" count="3" type="stmt"/>
1539
+ <line num="521" count="0" type="stmt"/>
1540
+ <line num="529" count="2" type="stmt"/>
1541
+ <line num="532" count="17" type="stmt"/>
1542
+ <line num="533" count="4" type="stmt"/>
1543
+ <line num="534" count="4" type="stmt"/>
1544
+ <line num="535" count="4" type="stmt"/>
1545
+ <line num="537" count="4" type="cond" truecount="3" falsecount="0"/>
1546
+ <line num="539" count="4" type="stmt"/>
1547
+ <line num="540" count="4" type="stmt"/>
1548
+ <line num="541" count="4" type="cond" truecount="1" falsecount="0"/>
1549
+ <line num="542" count="1" type="cond" truecount="1" falsecount="1"/>
1550
+ <line num="543" count="0" type="stmt"/>
1551
+ <line num="545" count="1" type="stmt"/>
1552
+ <line num="550" count="3" type="stmt"/>
1553
+ <line num="552" count="3" type="stmt"/>
1554
+ <line num="554" count="3" type="stmt"/>
1555
+ <line num="555" count="3" type="stmt"/>
1556
+ <line num="556" count="3" type="stmt"/>
1557
+ <line num="558" count="3" type="stmt"/>
1558
+ <line num="561" count="17" type="stmt"/>
1559
+ <line num="562" count="3" type="stmt"/>
1560
+ <line num="563" count="3" type="stmt"/>
1561
+ <line num="564" count="3" type="stmt"/>
1562
+ <line num="565" count="3" type="stmt"/>
1563
+ <line num="566" count="3" type="stmt"/>
1564
+ <line num="568" count="3" type="stmt"/>
1565
+ <line num="571" count="17" type="stmt"/>
1566
+ <line num="573" count="5" type="stmt"/>
1567
+ <line num="574" count="5" type="stmt"/>
1568
+ <line num="579" count="6" type="stmt"/>
1569
+ <line num="580" count="5" type="stmt"/>
1570
+ <line num="583" count="5" type="stmt"/>
1571
+ <line num="584" count="6" type="cond" truecount="2" falsecount="0"/>
1572
+ <line num="585" count="2" type="stmt"/>
1573
+ <line num="587" count="4" type="stmt"/>
1567
1574
  <line num="591" count="5" type="stmt"/>
1568
- <line num="596" count="6" type="stmt"/>
1569
- <line num="597" count="5" type="stmt"/>
1570
- <line num="600" count="5" type="stmt"/>
1571
- <line num="601" count="6" type="cond" truecount="2" falsecount="0"/>
1572
- <line num="602" count="2" type="stmt"/>
1573
- <line num="604" count="4" type="stmt"/>
1574
- <line num="608" count="5" type="stmt"/>
1575
- <line num="611" count="5" type="stmt"/>
1576
- <line num="612" count="5" type="stmt"/>
1577
- <line num="613" count="4" type="stmt"/>
1578
- <line num="614" count="4" type="stmt"/>
1579
- <line num="615" count="4" type="cond" truecount="1" falsecount="0"/>
1580
- <line num="616" count="2" type="stmt"/>
1581
- <line num="618" count="4" type="stmt"/>
1582
- <line num="619" count="4" type="stmt"/>
1583
- <line num="623" count="4" type="stmt"/>
1584
- <line num="624" count="4" type="stmt"/>
1585
- <line num="625" count="4" type="stmt"/>
1586
- <line num="627" count="0" type="stmt"/>
1587
- <line num="628" count="0" type="stmt"/>
1588
- <line num="635" count="5" type="stmt"/>
1575
+ <line num="594" count="5" type="stmt"/>
1576
+ <line num="595" count="5" type="stmt"/>
1577
+ <line num="596" count="4" type="stmt"/>
1578
+ <line num="597" count="4" type="stmt"/>
1579
+ <line num="598" count="4" type="cond" truecount="1" falsecount="0"/>
1580
+ <line num="599" count="2" type="stmt"/>
1581
+ <line num="601" count="4" type="stmt"/>
1582
+ <line num="602" count="4" type="stmt"/>
1583
+ <line num="606" count="4" type="stmt"/>
1584
+ <line num="607" count="4" type="stmt"/>
1585
+ <line num="608" count="4" type="stmt"/>
1586
+ <line num="610" count="0" type="stmt"/>
1587
+ <line num="611" count="0" type="stmt"/>
1588
+ <line num="618" count="5" type="stmt"/>
1589
1589
  </file>
1590
1590
  </package>
1591
1591
  <package name="src.tests">
1592
- <metrics statements="127" coveredstatements="118" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1592
+ <metrics statements="124" coveredstatements="115" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1593
1593
  <file name="TestConfiguration.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/TestConfiguration.ts">
1594
- <metrics statements="114" coveredstatements="105" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1595
- <line num="1" count="18" type="stmt"/>
1596
- <line num="4" count="18" type="stmt"/>
1597
- <line num="5" count="18" type="stmt"/>
1598
- <line num="8" count="18" type="stmt"/>
1599
- <line num="10" count="18" type="stmt"/>
1600
- <line num="11" count="18" type="stmt"/>
1601
- <line num="12" count="18" type="stmt"/>
1602
- <line num="13" count="18" type="stmt"/>
1603
- <line num="14" count="18" type="stmt"/>
1604
- <line num="15" count="18" type="stmt"/>
1605
- <line num="16" count="18" type="stmt"/>
1606
- <line num="24" count="18" type="stmt"/>
1607
- <line num="26" count="18" type="stmt"/>
1608
- <line num="28" count="18" type="cond" truecount="2" falsecount="0"/>
1609
- <line num="29" count="18" type="stmt"/>
1610
- <line num="30" count="18" type="stmt"/>
1611
- <line num="46" count="18" type="cond" truecount="1" falsecount="1"/>
1612
- <line num="47" count="18" type="stmt"/>
1613
- <line num="48" count="0" type="cond" truecount="0" falsecount="1"/>
1614
- <line num="49" count="0" type="stmt"/>
1615
- <line num="52" count="18" type="cond" truecount="1" falsecount="0"/>
1616
- <line num="53" count="18" type="stmt"/>
1617
- <line num="54" count="18" type="stmt"/>
1618
- <line num="56" count="18" type="stmt"/>
1619
- <line num="59" count="18" type="stmt"/>
1620
- <line num="63" count="0" type="stmt"/>
1621
- <line num="68" count="18" type="stmt"/>
1622
- <line num="69" count="26" type="stmt"/>
1623
- <line num="70" count="26" type="stmt"/>
1624
- <line num="73" count="18" type="stmt"/>
1625
- <line num="74" count="26" type="stmt"/>
1626
- <line num="75" count="26" type="stmt"/>
1627
- <line num="78" count="18" type="stmt"/>
1628
- <line num="79" count="22" type="stmt"/>
1629
- <line num="80" count="22" type="stmt"/>
1630
- <line num="83" count="18" type="stmt"/>
1631
- <line num="84" count="4" type="stmt"/>
1632
- <line num="85" count="4" type="stmt"/>
1633
- <line num="91" count="158" type="stmt"/>
1634
- <line num="93" count="158" type="stmt"/>
1635
- <line num="94" count="158" type="stmt"/>
1636
- <line num="95" count="158" type="stmt"/>
1637
- <line num="96" count="158" type="stmt"/>
1638
- <line num="97" count="158" type="stmt"/>
1639
- <line num="100" count="158" type="stmt"/>
1640
- <line num="101" count="16" type="stmt"/>
1641
- <line num="103" count="158" type="cond" truecount="1" falsecount="0"/>
1642
- <line num="104" count="72" type="stmt"/>
1643
- <line num="106" count="158" type="stmt"/>
1644
- <line num="107" count="158" type="stmt"/>
1645
- <line num="109" count="142" type="stmt"/>
1646
- <line num="115" count="18" type="stmt"/>
1647
- <line num="116" count="18" type="stmt"/>
1648
- <line num="118" count="18" type="stmt"/>
1649
- <line num="119" count="18" type="stmt"/>
1650
- <line num="120" count="18" type="stmt"/>
1651
- <line num="125" count="18" type="cond" truecount="1" falsecount="0"/>
1652
- <line num="126" count="18" type="stmt"/>
1653
- <line num="132" count="18" type="stmt"/>
1654
- <line num="134" count="6" type="stmt"/>
1594
+ <metrics statements="111" coveredstatements="102" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1595
+ <line num="1" count="17" type="stmt"/>
1596
+ <line num="2" count="17" type="stmt"/>
1597
+ <line num="3" count="17" type="stmt"/>
1598
+ <line num="4" count="17" type="stmt"/>
1599
+ <line num="5" count="17" type="stmt"/>
1600
+ <line num="6" count="17" type="stmt"/>
1601
+ <line num="7" count="17" type="stmt"/>
1602
+ <line num="8" count="17" type="stmt"/>
1603
+ <line num="16" count="17" type="stmt"/>
1604
+ <line num="18" count="17" type="stmt"/>
1605
+ <line num="20" count="17" type="cond" truecount="2" falsecount="0"/>
1606
+ <line num="21" count="17" type="stmt"/>
1607
+ <line num="22" count="17" type="stmt"/>
1608
+ <line num="38" count="17" type="cond" truecount="1" falsecount="1"/>
1609
+ <line num="39" count="17" type="stmt"/>
1610
+ <line num="40" count="0" type="cond" truecount="0" falsecount="1"/>
1611
+ <line num="41" count="0" type="stmt"/>
1612
+ <line num="44" count="17" type="cond" truecount="1" falsecount="0"/>
1613
+ <line num="45" count="17" type="stmt"/>
1614
+ <line num="46" count="17" type="stmt"/>
1615
+ <line num="48" count="17" type="stmt"/>
1616
+ <line num="51" count="17" type="stmt"/>
1617
+ <line num="55" count="0" type="stmt"/>
1618
+ <line num="60" count="17" type="stmt"/>
1619
+ <line num="61" count="25" type="stmt"/>
1620
+ <line num="62" count="25" type="stmt"/>
1621
+ <line num="65" count="17" type="stmt"/>
1622
+ <line num="66" count="25" type="stmt"/>
1623
+ <line num="67" count="25" type="stmt"/>
1624
+ <line num="70" count="17" type="stmt"/>
1625
+ <line num="71" count="21" type="stmt"/>
1626
+ <line num="72" count="21" type="stmt"/>
1627
+ <line num="75" count="17" type="stmt"/>
1628
+ <line num="76" count="4" type="stmt"/>
1629
+ <line num="77" count="4" type="stmt"/>
1630
+ <line num="83" count="155" type="stmt"/>
1631
+ <line num="85" count="155" type="stmt"/>
1632
+ <line num="86" count="155" type="stmt"/>
1633
+ <line num="87" count="155" type="stmt"/>
1634
+ <line num="88" count="155" type="stmt"/>
1635
+ <line num="89" count="155" type="stmt"/>
1636
+ <line num="92" count="155" type="stmt"/>
1637
+ <line num="93" count="16" type="stmt"/>
1638
+ <line num="95" count="155" type="cond" truecount="1" falsecount="0"/>
1639
+ <line num="96" count="72" type="stmt"/>
1640
+ <line num="98" count="155" type="stmt"/>
1641
+ <line num="99" count="155" type="stmt"/>
1642
+ <line num="101" count="139" type="stmt"/>
1643
+ <line num="107" count="17" type="stmt"/>
1644
+ <line num="108" count="17" type="stmt"/>
1645
+ <line num="110" count="17" type="stmt"/>
1646
+ <line num="111" count="17" type="stmt"/>
1647
+ <line num="112" count="17" type="stmt"/>
1648
+ <line num="117" count="17" type="cond" truecount="1" falsecount="0"/>
1649
+ <line num="118" count="17" type="stmt"/>
1650
+ <line num="124" count="17" type="stmt"/>
1651
+ <line num="126" count="6" type="stmt"/>
1652
+ <line num="129" count="6" type="stmt"/>
1655
1653
  <line num="137" count="6" type="stmt"/>
1656
- <line num="145" count="6" type="stmt"/>
1657
- <line num="146" count="6" type="stmt"/>
1658
- <line num="148" count="6" type="stmt"/>
1659
- <line num="152" count="475" type="stmt"/>
1660
- <line num="153" count="475" type="stmt"/>
1661
- <line num="155" count="405" type="stmt"/>
1662
- <line num="168" count="48" type="stmt"/>
1663
- <line num="176" count="48" type="stmt"/>
1664
- <line num="180" count="87" type="cond" truecount="0" falsecount="1"/>
1665
- <line num="181" count="0" type="stmt"/>
1666
- <line num="183" count="87" type="stmt"/>
1667
- <line num="189" count="86" type="stmt"/>
1668
- <line num="194" count="86" type="stmt"/>
1669
- <line num="195" count="86" type="stmt"/>
1670
- <line num="203" count="78" type="stmt"/>
1671
- <line num="204" count="78" type="cond" truecount="2" falsecount="0"/>
1672
- <line num="205" count="76" type="stmt"/>
1673
- <line num="206" count="2" type="cond" truecount="1" falsecount="1"/>
1674
- <line num="207" count="2" type="stmt"/>
1675
- <line num="209" count="0" type="stmt"/>
1676
- <line num="214" count="19" type="stmt"/>
1677
- <line num="217" count="18" type="stmt"/>
1678
- <line num="218" count="1" type="stmt"/>
1679
- <line num="224" count="18" type="stmt"/>
1680
- <line num="228" count="18" type="stmt"/>
1681
- <line num="232" count="18" type="stmt"/>
1682
- <line num="236" count="18" type="stmt"/>
1683
- <line num="240" count="74" type="stmt"/>
1684
- <line num="241" count="74" type="stmt"/>
1685
- <line num="246" count="64" type="cond" truecount="1" falsecount="0"/>
1686
- <line num="247" count="17" type="stmt"/>
1687
- <line num="249" count="64" type="stmt"/>
1688
- <line num="250" count="64" type="stmt"/>
1689
- <line num="251" count="64" type="stmt"/>
1690
- <line num="257" count="36" type="stmt"/>
1654
+ <line num="138" count="6" type="stmt"/>
1655
+ <line num="140" count="6" type="stmt"/>
1656
+ <line num="144" count="452" type="stmt"/>
1657
+ <line num="145" count="452" type="stmt"/>
1658
+ <line num="147" count="385" type="stmt"/>
1659
+ <line num="160" count="46" type="stmt"/>
1660
+ <line num="168" count="46" type="stmt"/>
1661
+ <line num="172" count="73" type="cond" truecount="0" falsecount="1"/>
1662
+ <line num="173" count="0" type="stmt"/>
1663
+ <line num="175" count="73" type="stmt"/>
1664
+ <line num="181" count="72" type="stmt"/>
1665
+ <line num="186" count="72" type="stmt"/>
1666
+ <line num="187" count="72" type="stmt"/>
1667
+ <line num="195" count="64" type="stmt"/>
1668
+ <line num="196" count="64" type="cond" truecount="2" falsecount="0"/>
1669
+ <line num="197" count="62" type="stmt"/>
1670
+ <line num="198" count="2" type="cond" truecount="1" falsecount="1"/>
1671
+ <line num="199" count="2" type="stmt"/>
1672
+ <line num="201" count="0" type="stmt"/>
1673
+ <line num="206" count="19" type="stmt"/>
1674
+ <line num="209" count="17" type="stmt"/>
1675
+ <line num="210" count="1" type="stmt"/>
1676
+ <line num="216" count="17" type="stmt"/>
1677
+ <line num="220" count="17" type="stmt"/>
1678
+ <line num="224" count="17" type="stmt"/>
1679
+ <line num="228" count="17" type="stmt"/>
1680
+ <line num="232" count="71" type="stmt"/>
1681
+ <line num="233" count="71" type="stmt"/>
1682
+ <line num="238" count="61" type="cond" truecount="1" falsecount="0"/>
1683
+ <line num="239" count="17" type="stmt"/>
1684
+ <line num="241" count="61" type="stmt"/>
1685
+ <line num="242" count="61" type="stmt"/>
1686
+ <line num="243" count="61" type="stmt"/>
1687
+ <line num="249" count="36" type="stmt"/>
1688
+ <line num="250" count="36" type="stmt"/>
1689
+ <line num="257" count="36" type="cond" truecount="1" falsecount="0"/>
1691
1690
  <line num="258" count="36" type="stmt"/>
1692
- <line num="265" count="36" type="cond" truecount="1" falsecount="0"/>
1693
- <line num="266" count="36" type="stmt"/>
1694
- <line num="283" count="8" type="stmt"/>
1695
- <line num="284" count="8" type="stmt"/>
1691
+ <line num="275" count="8" type="stmt"/>
1692
+ <line num="276" count="8" type="stmt"/>
1693
+ <line num="286" count="0" type="stmt"/>
1694
+ <line num="287" count="0" type="stmt"/>
1695
+ <line num="293" count="0" type="stmt"/>
1696
1696
  <line num="294" count="0" type="stmt"/>
1697
- <line num="295" count="0" type="stmt"/>
1698
- <line num="301" count="0" type="stmt"/>
1699
- <line num="302" count="0" type="stmt"/>
1700
- <line num="306" count="2" type="stmt"/>
1701
- <line num="307" count="2" type="stmt"/>
1702
- <line num="309" count="2" type="stmt"/>
1703
- <line num="310" count="2" type="stmt"/>
1704
- <line num="316" count="9" type="stmt"/>
1705
- <line num="317" count="9" type="stmt"/>
1706
- <line num="321" count="3" type="stmt"/>
1707
- <line num="322" count="3" type="stmt"/>
1708
- <line num="330" count="18" type="stmt"/>
1697
+ <line num="298" count="2" type="stmt"/>
1698
+ <line num="299" count="2" type="stmt"/>
1699
+ <line num="301" count="2" type="stmt"/>
1700
+ <line num="302" count="2" type="stmt"/>
1701
+ <line num="308" count="9" type="stmt"/>
1702
+ <line num="309" count="9" type="stmt"/>
1703
+ <line num="313" count="3" type="stmt"/>
1704
+ <line num="314" count="3" type="stmt"/>
1705
+ <line num="322" count="17" type="stmt"/>
1709
1706
  </file>
1710
1707
  <file name="controllers.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/controllers.ts">
1711
1708
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1712
- <line num="1" count="18" type="stmt"/>
1713
- <line num="2" count="18" type="stmt"/>
1714
- <line num="3" count="18" type="stmt"/>
1715
- <line num="4" count="18" type="stmt"/>
1716
- <line num="5" count="18" type="stmt"/>
1709
+ <line num="1" count="17" type="stmt"/>
1710
+ <line num="2" count="17" type="stmt"/>
1711
+ <line num="3" count="17" type="stmt"/>
1712
+ <line num="4" count="17" type="stmt"/>
1713
+ <line num="5" count="17" type="stmt"/>
1717
1714
  </file>
1718
1715
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/index.ts">
1719
1716
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1720
- <line num="1" count="18" type="stmt"/>
1721
- <line num="2" count="18" type="stmt"/>
1722
- <line num="3" count="18" type="stmt"/>
1723
- <line num="4" count="18" type="stmt"/>
1724
- <line num="5" count="18" type="stmt"/>
1725
- <line num="6" count="18" type="stmt"/>
1726
- <line num="8" count="18" type="stmt"/>
1727
- <line num="18" count="18" type="stmt"/>
1717
+ <line num="1" count="17" type="stmt"/>
1718
+ <line num="2" count="17" type="stmt"/>
1719
+ <line num="3" count="17" type="stmt"/>
1720
+ <line num="4" count="17" type="stmt"/>
1721
+ <line num="5" count="17" type="stmt"/>
1722
+ <line num="6" count="17" type="stmt"/>
1723
+ <line num="8" count="17" type="stmt"/>
1724
+ <line num="18" count="17" type="stmt"/>
1728
1725
  </file>
1729
1726
  </package>
1730
1727
  <package name="src.tests.api">
1731
- <metrics statements="185" coveredstatements="184" conditionals="127" coveredconditionals="104" methods="62" coveredmethods="60"/>
1728
+ <metrics statements="147" coveredstatements="147" conditionals="73" coveredconditionals="68" methods="48" coveredmethods="48"/>
1732
1729
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/accounts.ts">
1733
1730
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
1734
- <line num="3" count="18" type="stmt"/>
1735
- <line num="5" count="18" type="stmt"/>
1736
- <line num="7" count="18" type="stmt"/>
1737
- <line num="10" count="18" type="stmt"/>
1731
+ <line num="3" count="17" type="stmt"/>
1732
+ <line num="5" count="17" type="stmt"/>
1733
+ <line num="7" count="17" type="stmt"/>
1734
+ <line num="10" count="17" type="stmt"/>
1738
1735
  <line num="11" count="3" type="stmt"/>
1739
1736
  <line num="17" count="3" type="stmt"/>
1740
- <line num="20" count="18" type="stmt"/>
1737
+ <line num="20" count="17" type="stmt"/>
1741
1738
  <line num="21" count="2" type="stmt"/>
1742
1739
  </file>
1743
1740
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/auth.ts">
1744
1741
  <metrics statements="16" coveredstatements="16" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
1745
- <line num="2" count="18" type="stmt"/>
1746
- <line num="4" count="18" type="stmt"/>
1747
- <line num="6" count="18" type="stmt"/>
1748
- <line num="9" count="18" type="stmt"/>
1742
+ <line num="2" count="17" type="stmt"/>
1743
+ <line num="4" count="17" type="stmt"/>
1744
+ <line num="6" count="17" type="stmt"/>
1745
+ <line num="9" count="17" type="stmt"/>
1749
1746
  <line num="10" count="1" type="stmt"/>
1750
- <line num="20" count="18" type="stmt"/>
1747
+ <line num="20" count="17" type="stmt"/>
1751
1748
  <line num="21" count="1" type="stmt"/>
1752
- <line num="27" count="18" type="stmt"/>
1749
+ <line num="27" count="17" type="stmt"/>
1753
1750
  <line num="28" count="2" type="stmt"/>
1754
1751
  <line num="29" count="2" type="stmt"/>
1755
1752
  <line num="30" count="2" type="stmt"/>
@@ -1761,20 +1758,20 @@
1761
1758
  </file>
1762
1759
  <file name="base.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/base.ts">
1763
1760
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1764
- <line num="8" count="18" type="stmt"/>
1765
- <line num="13" count="270" type="stmt"/>
1766
- <line num="14" count="270" type="stmt"/>
1761
+ <line num="8" count="17" type="stmt"/>
1762
+ <line num="13" count="187" type="stmt"/>
1763
+ <line num="14" count="187" type="stmt"/>
1767
1764
  </file>
1768
1765
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/configs.ts">
1769
1766
  <metrics statements="17" coveredstatements="17" conditionals="0" coveredconditionals="0" methods="6" coveredmethods="6"/>
1770
- <line num="2" count="18" type="stmt"/>
1771
- <line num="4" count="18" type="stmt"/>
1772
- <line num="6" count="18" type="stmt"/>
1773
- <line num="9" count="18" type="stmt"/>
1767
+ <line num="2" count="17" type="stmt"/>
1768
+ <line num="4" count="17" type="stmt"/>
1769
+ <line num="6" count="17" type="stmt"/>
1770
+ <line num="9" count="17" type="stmt"/>
1774
1771
  <line num="10" count="1" type="stmt"/>
1775
- <line num="17" count="18" type="stmt"/>
1772
+ <line num="17" count="17" type="stmt"/>
1776
1773
  <line num="18" count="19" type="stmt"/>
1777
- <line num="26" count="18" type="stmt"/>
1774
+ <line num="26" count="17" type="stmt"/>
1778
1775
  <line num="27" count="1" type="stmt"/>
1779
1776
  <line num="28" count="1" type="stmt"/>
1780
1777
  <line num="29" count="3" type="stmt"/>
@@ -1782,153 +1779,103 @@
1782
1779
  <line num="32" count="1" type="stmt"/>
1783
1780
  <line num="35" count="1" type="stmt"/>
1784
1781
  <line num="36" count="1" type="stmt"/>
1785
- <line num="42" count="18" type="stmt"/>
1782
+ <line num="42" count="17" type="stmt"/>
1786
1783
  <line num="43" count="2" type="stmt"/>
1787
1784
  </file>
1788
1785
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/email.ts">
1789
1786
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
1790
- <line num="2" count="18" type="stmt"/>
1791
- <line num="4" count="18" type="stmt"/>
1792
- <line num="6" count="18" type="stmt"/>
1793
- <line num="9" count="18" type="stmt"/>
1787
+ <line num="2" count="17" type="stmt"/>
1788
+ <line num="4" count="17" type="stmt"/>
1789
+ <line num="6" count="17" type="stmt"/>
1790
+ <line num="9" count="17" type="stmt"/>
1794
1791
  <line num="10" count="1" type="stmt"/>
1795
1792
  </file>
1796
1793
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/environment.ts">
1797
1794
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
1798
- <line num="2" count="18" type="stmt"/>
1799
- <line num="4" count="18" type="stmt"/>
1800
- <line num="6" count="18" type="stmt"/>
1801
- <line num="9" count="18" type="stmt"/>
1795
+ <line num="2" count="17" type="stmt"/>
1796
+ <line num="4" count="17" type="stmt"/>
1797
+ <line num="6" count="17" type="stmt"/>
1798
+ <line num="9" count="17" type="stmt"/>
1802
1799
  <line num="10" count="1" type="stmt"/>
1803
1800
  </file>
1804
- <file name="groups.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/groups.ts">
1805
- <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1806
- <line num="3" count="18" type="stmt"/>
1807
- <line num="5" count="18" type="stmt"/>
1808
- <line num="7" count="18" type="stmt"/>
1809
- <line num="10" count="18" type="stmt"/>
1810
- <line num="11" count="4" type="stmt"/>
1811
- <line num="19" count="18" type="stmt"/>
1812
- <line num="20" count="1" type="stmt"/>
1813
- </file>
1814
1801
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/index.ts">
1815
- <metrics statements="31" coveredstatements="31" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1816
- <line num="2" count="18" type="stmt"/>
1817
- <line num="3" count="18" type="stmt"/>
1818
- <line num="4" count="18" type="stmt"/>
1819
- <line num="5" count="18" type="stmt"/>
1820
- <line num="6" count="18" type="stmt"/>
1821
- <line num="7" count="18" type="stmt"/>
1822
- <line num="8" count="18" type="stmt"/>
1823
- <line num="9" count="18" type="stmt"/>
1824
- <line num="10" count="18" type="stmt"/>
1825
- <line num="11" count="18" type="stmt"/>
1826
- <line num="12" count="18" type="stmt"/>
1827
- <line num="13" count="18" type="stmt"/>
1828
- <line num="14" count="18" type="stmt"/>
1829
- <line num="15" count="18" type="stmt"/>
1830
- <line num="16" count="18" type="stmt"/>
1831
- <line num="17" count="18" type="stmt"/>
1832
- <line num="35" count="18" type="stmt"/>
1833
- <line num="36" count="18" type="stmt"/>
1834
- <line num="37" count="18" type="stmt"/>
1835
- <line num="38" count="18" type="stmt"/>
1836
- <line num="39" count="18" type="stmt"/>
1837
- <line num="40" count="18" type="stmt"/>
1838
- <line num="41" count="18" type="stmt"/>
1839
- <line num="42" count="18" type="stmt"/>
1840
- <line num="43" count="18" type="stmt"/>
1841
- <line num="44" count="18" type="stmt"/>
1842
- <line num="45" count="18" type="stmt"/>
1843
- <line num="46" count="18" type="stmt"/>
1844
- <line num="47" count="18" type="stmt"/>
1845
- <line num="48" count="18" type="stmt"/>
1846
- <line num="49" count="18" type="stmt"/>
1847
- </file>
1848
- <file name="license.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/license.ts">
1849
- <metrics statements="5" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="1"/>
1850
- <line num="2" count="18" type="stmt"/>
1851
- <line num="4" count="18" type="stmt"/>
1852
- <line num="6" count="18" type="stmt"/>
1853
- <line num="9" count="18" type="stmt"/>
1854
- <line num="10" count="0" type="stmt"/>
1802
+ <metrics statements="23" coveredstatements="23" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1803
+ <line num="2" count="17" type="stmt"/>
1804
+ <line num="3" count="17" type="stmt"/>
1805
+ <line num="4" count="17" type="stmt"/>
1806
+ <line num="5" count="17" type="stmt"/>
1807
+ <line num="6" count="17" type="stmt"/>
1808
+ <line num="7" count="17" type="stmt"/>
1809
+ <line num="8" count="17" type="stmt"/>
1810
+ <line num="9" count="17" type="stmt"/>
1811
+ <line num="10" count="17" type="stmt"/>
1812
+ <line num="11" count="17" type="stmt"/>
1813
+ <line num="12" count="17" type="stmt"/>
1814
+ <line num="14" count="17" type="stmt"/>
1815
+ <line num="28" count="17" type="stmt"/>
1816
+ <line num="29" count="17" type="stmt"/>
1817
+ <line num="30" count="17" type="stmt"/>
1818
+ <line num="31" count="17" type="stmt"/>
1819
+ <line num="32" count="17" type="stmt"/>
1820
+ <line num="33" count="17" type="stmt"/>
1821
+ <line num="34" count="17" type="stmt"/>
1822
+ <line num="35" count="17" type="stmt"/>
1823
+ <line num="36" count="17" type="stmt"/>
1824
+ <line num="37" count="17" type="stmt"/>
1825
+ <line num="38" count="17" type="stmt"/>
1855
1826
  </file>
1856
1827
  <file name="migrations.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/migrations.ts">
1857
1828
  <metrics statements="7" coveredstatements="7" conditionals="24" coveredconditionals="24" methods="3" coveredmethods="3"/>
1858
- <line num="2" count="18" type="stmt"/>
1859
- <line num="4" count="18" type="stmt"/>
1860
- <line num="6" count="18" type="stmt"/>
1861
- <line num="9" count="18" type="stmt"/>
1829
+ <line num="2" count="17" type="stmt"/>
1830
+ <line num="4" count="17" type="stmt"/>
1831
+ <line num="6" count="17" type="stmt"/>
1832
+ <line num="9" count="17" type="stmt"/>
1862
1833
  <line num="10" count="2" type="stmt"/>
1863
- <line num="16" count="18" type="stmt"/>
1834
+ <line num="16" count="17" type="stmt"/>
1864
1835
  <line num="17" count="2" type="stmt"/>
1865
1836
  </file>
1866
1837
  <file name="restore.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/restore.ts">
1867
1838
  <metrics statements="5" coveredstatements="5" conditionals="6" coveredconditionals="6" methods="2" coveredmethods="2"/>
1868
- <line num="2" count="18" type="stmt"/>
1869
- <line num="4" count="18" type="stmt"/>
1870
- <line num="6" count="18" type="stmt"/>
1871
- <line num="9" count="18" type="stmt"/>
1839
+ <line num="2" count="17" type="stmt"/>
1840
+ <line num="4" count="17" type="stmt"/>
1841
+ <line num="6" count="17" type="stmt"/>
1842
+ <line num="9" count="17" type="stmt"/>
1872
1843
  <line num="10" count="2" type="stmt"/>
1873
1844
  </file>
1874
- <file name="roles.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/roles.ts">
1875
- <metrics statements="9" coveredstatements="9" conditionals="18" coveredconditionals="12" methods="4" coveredmethods="4"/>
1876
- <line num="2" count="18" type="stmt"/>
1877
- <line num="4" count="18" type="stmt"/>
1878
- <line num="6" count="18" type="stmt"/>
1879
- <line num="9" count="18" type="stmt"/>
1880
- <line num="10" count="1" type="stmt"/>
1881
- <line num="17" count="18" type="stmt"/>
1882
- <line num="18" count="1" type="stmt"/>
1883
- <line num="25" count="18" type="stmt"/>
1884
- <line num="26" count="1" type="stmt"/>
1885
- </file>
1886
1845
  <file name="self.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/self.ts">
1887
1846
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1888
- <line num="3" count="18" type="stmt"/>
1889
- <line num="5" count="18" type="stmt"/>
1890
- <line num="7" count="18" type="stmt"/>
1891
- <line num="10" count="18" type="stmt"/>
1847
+ <line num="3" count="17" type="stmt"/>
1848
+ <line num="5" count="17" type="stmt"/>
1849
+ <line num="7" count="17" type="stmt"/>
1850
+ <line num="10" count="17" type="stmt"/>
1892
1851
  <line num="11" count="2" type="stmt"/>
1893
- <line num="19" count="18" type="stmt"/>
1852
+ <line num="19" count="17" type="stmt"/>
1894
1853
  <line num="20" count="1" type="stmt"/>
1895
1854
  </file>
1896
1855
  <file name="status.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/status.ts">
1897
1856
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
1898
- <line num="2" count="18" type="stmt"/>
1899
- <line num="4" count="18" type="stmt"/>
1900
- <line num="6" count="18" type="stmt"/>
1901
- <line num="9" count="18" type="stmt"/>
1857
+ <line num="2" count="17" type="stmt"/>
1858
+ <line num="4" count="17" type="stmt"/>
1859
+ <line num="6" count="17" type="stmt"/>
1860
+ <line num="9" count="17" type="stmt"/>
1902
1861
  <line num="10" count="2" type="stmt"/>
1903
1862
  </file>
1904
- <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/templates.ts">
1905
- <metrics statements="9" coveredstatements="9" conditionals="36" coveredconditionals="24" methods="4" coveredmethods="4"/>
1906
- <line num="2" count="18" type="stmt"/>
1907
- <line num="4" count="18" type="stmt"/>
1908
- <line num="6" count="18" type="stmt"/>
1909
- <line num="9" count="18" type="stmt"/>
1910
- <line num="10" count="2" type="stmt"/>
1911
- <line num="16" count="18" type="stmt"/>
1912
- <line num="17" count="2" type="stmt"/>
1913
- <line num="23" count="18" type="stmt"/>
1914
- <line num="24" count="1" type="stmt"/>
1915
- </file>
1916
1863
  <file name="tenants.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/tenants.ts">
1917
1864
  <metrics statements="5" coveredstatements="5" conditionals="10" coveredconditionals="8" methods="2" coveredmethods="2"/>
1918
- <line num="2" count="18" type="stmt"/>
1919
- <line num="4" count="18" type="stmt"/>
1920
- <line num="6" count="18" type="stmt"/>
1921
- <line num="9" count="18" type="stmt"/>
1865
+ <line num="2" count="17" type="stmt"/>
1866
+ <line num="4" count="17" type="stmt"/>
1867
+ <line num="6" count="17" type="stmt"/>
1868
+ <line num="9" count="17" type="stmt"/>
1922
1869
  <line num="10" count="3" type="stmt"/>
1923
1870
  </file>
1924
1871
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/users.ts">
1925
1872
  <metrics statements="41" coveredstatements="41" conditionals="33" coveredconditionals="30" methods="15" coveredmethods="15"/>
1926
- <line num="8" count="18" type="stmt"/>
1927
- <line num="9" count="18" type="stmt"/>
1928
- <line num="11" count="18" type="stmt"/>
1929
- <line num="13" count="18" type="stmt"/>
1930
- <line num="15" count="18" type="stmt"/>
1931
- <line num="20" count="18" type="cond" truecount="1" falsecount="0"/>
1873
+ <line num="8" count="17" type="stmt"/>
1874
+ <line num="9" count="17" type="stmt"/>
1875
+ <line num="11" count="17" type="stmt"/>
1876
+ <line num="13" count="17" type="stmt"/>
1877
+ <line num="15" count="17" type="stmt"/>
1878
+ <line num="20" count="17" type="cond" truecount="1" falsecount="0"/>
1932
1879
  <line num="21" count="3" type="stmt"/>
1933
1880
  <line num="22" count="3" type="stmt"/>
1934
1881
  <line num="23" count="3" type="stmt"/>
@@ -1938,39 +1885,39 @@
1938
1885
  <line num="38" count="2" type="stmt"/>
1939
1886
  <line num="41" count="2" type="stmt"/>
1940
1887
  <line num="42" count="2" type="stmt"/>
1941
- <line num="45" count="18" type="stmt"/>
1888
+ <line num="45" count="17" type="stmt"/>
1942
1889
  <line num="46" count="1" type="stmt"/>
1943
- <line num="56" count="18" type="cond" truecount="1" falsecount="0"/>
1890
+ <line num="56" count="17" type="cond" truecount="1" falsecount="0"/>
1944
1891
  <line num="57" count="2" type="stmt"/>
1945
1892
  <line num="58" count="2" type="stmt"/>
1946
1893
  <line num="59" count="2" type="stmt"/>
1947
- <line num="69" count="18" type="cond" truecount="1" falsecount="0"/>
1894
+ <line num="69" count="17" type="cond" truecount="1" falsecount="0"/>
1948
1895
  <line num="70" count="6" type="stmt"/>
1949
1896
  <line num="71" count="6" type="stmt"/>
1950
1897
  <line num="78" count="6" type="stmt"/>
1951
- <line num="81" count="18" type="stmt"/>
1898
+ <line num="81" count="17" type="stmt"/>
1952
1899
  <line num="82" count="3" type="stmt"/>
1953
1900
  <line num="83" count="3" type="stmt"/>
1954
1901
  <line num="89" count="3" type="stmt"/>
1955
- <line num="94" count="18" type="stmt"/>
1902
+ <line num="94" count="17" type="stmt"/>
1956
1903
  <line num="97" count="6" type="stmt"/>
1957
1904
  <line num="98" count="6" type="cond" truecount="1" falsecount="0"/>
1958
1905
  <line num="99" count="6" type="stmt"/>
1959
1906
  <line num="105" count="6" type="stmt"/>
1960
1907
  <line num="112" count="6" type="stmt"/>
1961
- <line num="118" count="18" type="stmt"/>
1908
+ <line num="118" count="17" type="stmt"/>
1962
1909
  <line num="119" count="23" type="stmt"/>
1963
- <line num="127" count="18" type="stmt"/>
1910
+ <line num="127" count="17" type="stmt"/>
1964
1911
  <line num="128" count="5" type="stmt"/>
1965
- <line num="135" count="18" type="stmt"/>
1966
- <line num="136" count="9" type="stmt"/>
1912
+ <line num="135" count="17" type="stmt"/>
1913
+ <line num="136" count="8" type="stmt"/>
1967
1914
  </file>
1968
1915
  </package>
1969
1916
  <package name="src.tests.mocks">
1970
1917
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1971
- <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/email.ts">
1918
+ <file name="email.js" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/email.js">
1972
1919
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1973
- <line num="1" count="18" type="stmt"/>
1920
+ <line num="1" count="17" type="stmt"/>
1974
1921
  <line num="3" count="4" type="stmt"/>
1975
1922
  <line num="4" count="4" type="stmt"/>
1976
1923
  <line num="5" count="4" type="stmt"/>
@@ -1978,58 +1925,58 @@
1978
1925
  </file>
1979
1926
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/index.ts">
1980
1927
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1981
- <line num="1" count="18" type="stmt"/>
1982
- <line num="2" count="18" type="stmt"/>
1983
- <line num="4" count="18" type="stmt"/>
1928
+ <line num="1" count="17" type="stmt"/>
1929
+ <line num="2" count="17" type="stmt"/>
1930
+ <line num="4" count="17" type="stmt"/>
1984
1931
  </file>
1985
1932
  </package>
1986
1933
  <package name="src.tests.structures">
1987
- <metrics statements="35" coveredstatements="35" conditionals="0" coveredconditionals="0" methods="10" coveredmethods="10"/>
1934
+ <metrics statements="35" coveredstatements="33" conditionals="0" coveredconditionals="0" methods="10" coveredmethods="9"/>
1988
1935
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/configs.ts">
1989
1936
  <metrics statements="12" coveredstatements="12" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
1990
- <line num="1" count="18" type="stmt"/>
1991
- <line num="2" count="18" type="stmt"/>
1992
- <line num="4" count="18" type="stmt"/>
1937
+ <line num="1" count="17" type="stmt"/>
1938
+ <line num="2" count="17" type="stmt"/>
1939
+ <line num="4" count="17" type="stmt"/>
1993
1940
  <line num="5" count="8" type="stmt"/>
1994
- <line num="24" count="18" type="stmt"/>
1941
+ <line num="24" count="17" type="stmt"/>
1995
1942
  <line num="25" count="6" type="stmt"/>
1996
- <line num="36" count="18" type="stmt"/>
1943
+ <line num="36" count="17" type="stmt"/>
1997
1944
  <line num="37" count="12" type="stmt"/>
1998
- <line num="50" count="18" type="stmt"/>
1945
+ <line num="50" count="17" type="stmt"/>
1999
1946
  <line num="51" count="3" type="stmt"/>
2000
- <line num="66" count="18" type="stmt"/>
1947
+ <line num="66" count="17" type="stmt"/>
2001
1948
  <line num="67" count="12" type="stmt"/>
2002
1949
  </file>
2003
1950
  <file name="groups.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/groups.ts">
2004
- <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
2005
- <line num="1" count="18" type="stmt"/>
2006
- <line num="2" count="3" type="stmt"/>
2007
- <line num="10" count="3" type="stmt"/>
1951
+ <metrics statements="3" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
1952
+ <line num="1" count="17" type="stmt"/>
1953
+ <line num="2" count="0" type="stmt"/>
1954
+ <line num="10" count="0" type="stmt"/>
2008
1955
  </file>
2009
1956
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/index.ts">
2010
1957
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2011
- <line num="1" count="18" type="stmt"/>
2012
- <line num="2" count="18" type="stmt"/>
2013
- <line num="3" count="18" type="stmt"/>
2014
- <line num="4" count="18" type="stmt"/>
2015
- <line num="5" count="18" type="stmt"/>
2016
- <line num="7" count="18" type="stmt"/>
2017
- <line num="8" count="18" type="stmt"/>
2018
- <line num="9" count="18" type="stmt"/>
2019
- <line num="11" count="18" type="stmt"/>
2020
- <line num="22" count="18" type="stmt"/>
1958
+ <line num="1" count="17" type="stmt"/>
1959
+ <line num="2" count="17" type="stmt"/>
1960
+ <line num="3" count="17" type="stmt"/>
1961
+ <line num="4" count="17" type="stmt"/>
1962
+ <line num="5" count="17" type="stmt"/>
1963
+ <line num="7" count="17" type="stmt"/>
1964
+ <line num="8" count="17" type="stmt"/>
1965
+ <line num="9" count="17" type="stmt"/>
1966
+ <line num="11" count="17" type="stmt"/>
1967
+ <line num="22" count="17" type="stmt"/>
2021
1968
  </file>
2022
1969
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/users.ts">
2023
1970
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
2024
- <line num="1" count="18" type="stmt"/>
2025
- <line num="3" count="18" type="stmt"/>
2026
- <line num="5" count="18" type="stmt"/>
2027
- <line num="6" count="85" type="stmt"/>
2028
- <line num="9" count="18" type="stmt"/>
2029
- <line num="10" count="81" type="stmt"/>
2030
- <line num="18" count="18" type="stmt"/>
2031
- <line num="19" count="42" type="stmt"/>
2032
- <line num="30" count="18" type="stmt"/>
1971
+ <line num="1" count="17" type="stmt"/>
1972
+ <line num="3" count="17" type="stmt"/>
1973
+ <line num="5" count="17" type="stmt"/>
1974
+ <line num="6" count="82" type="stmt"/>
1975
+ <line num="9" count="17" type="stmt"/>
1976
+ <line num="10" count="78" type="stmt"/>
1977
+ <line num="18" count="17" type="stmt"/>
1978
+ <line num="19" count="40" type="stmt"/>
1979
+ <line num="30" count="17" type="stmt"/>
2033
1980
  <line num="31" count="8" type="stmt"/>
2034
1981
  </file>
2035
1982
  </package>
@@ -2037,12 +1984,12 @@
2037
1984
  <metrics statements="159" coveredstatements="130" conditionals="114" coveredconditionals="75" methods="23" coveredmethods="22"/>
2038
1985
  <file name="appService.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/appService.ts">
2039
1986
  <metrics statements="19" coveredstatements="9" conditionals="6" coveredconditionals="2" methods="2" coveredmethods="2"/>
2040
- <line num="1" count="18" type="stmt"/>
2041
- <line num="2" count="18" type="stmt"/>
2042
- <line num="3" count="18" type="stmt"/>
2043
- <line num="4" count="18" type="stmt"/>
2044
- <line num="7" count="101" type="cond" truecount="1" falsecount="0"/>
2045
- <line num="8" count="101" type="stmt"/>
1987
+ <line num="1" count="17" type="stmt"/>
1988
+ <line num="2" count="17" type="stmt"/>
1989
+ <line num="3" count="17" type="stmt"/>
1990
+ <line num="4" count="17" type="stmt"/>
1991
+ <line num="7" count="98" type="cond" truecount="1" falsecount="0"/>
1992
+ <line num="8" count="98" type="stmt"/>
2046
1993
  <line num="10" count="0" type="stmt"/>
2047
1994
  <line num="11" count="0" type="stmt"/>
2048
1995
  <line num="12" count="0" type="cond" truecount="0" falsecount="1"/>
@@ -2052,24 +1999,24 @@
2052
1999
  <line num="17" count="0" type="stmt"/>
2053
2000
  <line num="19" count="0" type="stmt"/>
2054
2001
  <line num="20" count="0" type="stmt"/>
2055
- <line num="23" count="18" type="stmt"/>
2056
- <line num="24" count="101" type="stmt"/>
2057
- <line num="29" count="101" type="cond" truecount="1" falsecount="2"/>
2002
+ <line num="23" count="17" type="stmt"/>
2003
+ <line num="24" count="98" type="stmt"/>
2004
+ <line num="29" count="98" type="cond" truecount="1" falsecount="2"/>
2058
2005
  <line num="30" count="0" type="stmt"/>
2059
2006
  </file>
2060
2007
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/email.ts">
2061
2008
  <metrics statements="72" coveredstatements="60" conditionals="85" coveredconditionals="57" methods="7" coveredmethods="7"/>
2062
- <line num="1" count="18" type="stmt"/>
2063
- <line num="2" count="18" type="stmt"/>
2064
- <line num="3" count="18" type="stmt"/>
2065
- <line num="4" count="18" type="stmt"/>
2066
- <line num="5" count="18" type="stmt"/>
2067
- <line num="6" count="18" type="stmt"/>
2068
- <line num="8" count="18" type="stmt"/>
2069
- <line num="9" count="18" type="stmt"/>
2070
- <line num="29" count="18" type="stmt"/>
2071
- <line num="30" count="18" type="stmt"/>
2072
- <line num="32" count="18" type="stmt"/>
2009
+ <line num="1" count="17" type="stmt"/>
2010
+ <line num="2" count="17" type="stmt"/>
2011
+ <line num="3" count="17" type="stmt"/>
2012
+ <line num="4" count="17" type="stmt"/>
2013
+ <line num="5" count="17" type="stmt"/>
2014
+ <line num="6" count="17" type="stmt"/>
2015
+ <line num="8" count="17" type="stmt"/>
2016
+ <line num="9" count="17" type="stmt"/>
2017
+ <line num="29" count="17" type="stmt"/>
2018
+ <line num="30" count="17" type="stmt"/>
2019
+ <line num="32" count="17" type="stmt"/>
2073
2020
  <line num="41" count="22" type="stmt"/>
2074
2021
  <line num="43" count="22" type="cond" truecount="0" falsecount="1"/>
2075
2022
  <line num="44" count="0" type="stmt"/>
@@ -2105,13 +2052,13 @@
2105
2052
  <line num="159" count="9" type="stmt"/>
2106
2053
  <line num="163" count="0" type="cond" truecount="0" falsecount="3"/>
2107
2054
  <line num="164" count="0" type="stmt"/>
2108
- <line num="181" count="18" type="stmt"/>
2055
+ <line num="181" count="17" type="stmt"/>
2109
2056
  <line num="183" count="2" type="cond" truecount="2" falsecount="1"/>
2110
2057
  <line num="184" count="0" type="stmt"/>
2111
2058
  <line num="186" count="2" type="stmt"/>
2112
2059
  <line num="187" count="2" type="stmt"/>
2113
2060
  <line num="188" count="2" type="stmt"/>
2114
- <line num="200" count="18" type="stmt"/>
2061
+ <line num="200" count="17" type="stmt"/>
2115
2062
  <line num="205" count="7" type="stmt"/>
2116
2063
  <line num="207" count="7" type="cond" truecount="7" falsecount="3"/>
2117
2064
  <line num="208" count="7" type="cond" truecount="1" falsecount="2"/>
@@ -2128,24 +2075,24 @@
2128
2075
  <line num="241" count="7" type="cond" truecount="0" falsecount="1"/>
2129
2076
  <line num="242" count="0" type="stmt"/>
2130
2077
  <line num="244" count="7" type="stmt"/>
2131
- <line num="252" count="18" type="stmt"/>
2078
+ <line num="252" count="17" type="stmt"/>
2132
2079
  <line num="253" count="15" type="stmt"/>
2133
2080
  <line num="254" count="15" type="stmt"/>
2134
2081
  </file>
2135
2082
  <file name="fileSystem.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/fileSystem.ts">
2136
2083
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
2137
- <line num="1" count="18" type="stmt"/>
2138
- <line num="3" count="18" type="stmt"/>
2139
- <line num="4" count="90" type="stmt"/>
2084
+ <line num="1" count="17" type="stmt"/>
2085
+ <line num="3" count="17" type="stmt"/>
2086
+ <line num="4" count="85" type="stmt"/>
2140
2087
  </file>
2141
2088
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/index.ts">
2142
2089
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
2143
- <line num="7" count="18" type="stmt"/>
2090
+ <line num="7" count="17" type="stmt"/>
2144
2091
  <line num="8" count="21" type="stmt"/>
2145
2092
  </file>
2146
2093
  <file name="redis.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/redis.ts">
2147
2094
  <metrics statements="39" coveredstatements="33" conditionals="11" coveredconditionals="7" methods="10" coveredmethods="9"/>
2148
- <line num="1" count="18" type="stmt"/>
2095
+ <line num="1" count="17" type="stmt"/>
2149
2096
  <line num="4" count="7" type="cond" truecount="2" falsecount="0"/>
2150
2097
  <line num="7" count="2" type="stmt"/>
2151
2098
  <line num="10" count="5" type="stmt"/>
@@ -2163,35 +2110,35 @@
2163
2110
  <line num="38" count="2" type="cond" truecount="1" falsecount="0"/>
2164
2111
  <line num="39" count="2" type="stmt"/>
2165
2112
  <line num="41" count="2" type="stmt"/>
2166
- <line num="44" count="18" type="stmt"/>
2167
- <line num="45" count="18" type="stmt"/>
2168
- <line num="46" count="18" type="stmt"/>
2169
- <line num="47" count="18" type="stmt"/>
2170
- <line num="48" count="18" type="stmt"/>
2171
- <line num="54" count="18" type="stmt"/>
2113
+ <line num="44" count="17" type="stmt"/>
2114
+ <line num="45" count="17" type="stmt"/>
2115
+ <line num="46" count="17" type="stmt"/>
2116
+ <line num="47" count="17" type="stmt"/>
2117
+ <line num="48" count="17" type="stmt"/>
2118
+ <line num="54" count="17" type="stmt"/>
2172
2119
  <line num="55" count="0" type="cond" truecount="0" falsecount="1"/>
2173
2120
  <line num="56" count="0" type="cond" truecount="0" falsecount="1"/>
2174
2121
  <line num="57" count="0" type="stmt"/>
2175
- <line num="67" count="18" type="stmt"/>
2122
+ <line num="67" count="17" type="stmt"/>
2176
2123
  <line num="68" count="2" type="stmt"/>
2177
- <line num="77" count="18" type="stmt"/>
2124
+ <line num="77" count="17" type="stmt"/>
2178
2125
  <line num="81" count="1" type="stmt"/>
2179
2126
  <line num="82" count="1" type="stmt"/>
2180
2127
  <line num="84" count="0" type="stmt"/>
2181
- <line num="94" count="18" type="stmt"/>
2128
+ <line num="94" count="17" type="stmt"/>
2182
2129
  <line num="95" count="5" type="stmt"/>
2183
- <line num="104" count="18" type="stmt"/>
2130
+ <line num="104" count="17" type="stmt"/>
2184
2131
  <line num="108" count="1" type="stmt"/>
2185
2132
  <line num="109" count="1" type="stmt"/>
2186
2133
  <line num="111" count="0" type="stmt"/>
2187
2134
  </file>
2188
2135
  <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/templates.ts">
2189
2136
  <metrics statements="17" coveredstatements="17" conditionals="10" coveredconditionals="7" methods="1" coveredmethods="1"/>
2190
- <line num="1" count="18" type="stmt"/>
2191
- <line num="2" count="18" type="stmt"/>
2192
- <line num="8" count="18" type="stmt"/>
2193
- <line num="9" count="18" type="stmt"/>
2194
- <line num="11" count="18" type="stmt"/>
2137
+ <line num="1" count="17" type="stmt"/>
2138
+ <line num="2" count="17" type="stmt"/>
2139
+ <line num="8" count="17" type="stmt"/>
2140
+ <line num="9" count="17" type="stmt"/>
2141
+ <line num="11" count="17" type="stmt"/>
2195
2142
  <line num="15" count="7" type="stmt"/>
2196
2143
  <line num="18" count="7" type="cond" truecount="1" falsecount="1"/>
2197
2144
  <line num="19" count="7" type="stmt"/>
@@ -2207,8 +2154,8 @@
2207
2154
  </file>
2208
2155
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/users.ts">
2209
2156
  <metrics statements="7" coveredstatements="6" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
2210
- <line num="1" count="18" type="stmt"/>
2211
- <line num="3" count="18" type="stmt"/>
2157
+ <line num="1" count="17" type="stmt"/>
2158
+ <line num="3" count="17" type="stmt"/>
2212
2159
  <line num="4" count="10" type="stmt"/>
2213
2160
  <line num="5" count="10" type="stmt"/>
2214
2161
  <line num="6" count="10" type="stmt"/>