@budibase/worker 3.23.17 → 3.23.18

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "3.23.17",
4
+ "version": "3.23.18",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -109,5 +109,5 @@
109
109
  }
110
110
  }
111
111
  },
112
- "gitHead": "dc0b829769782be5be7fb538483b0facd0392f12"
112
+ "gitHead": "923ca1f2e271e7d75262b971cbf75d79cdd17788"
113
113
  }
@@ -857,6 +857,17 @@ describe("/api/global/users", () => {
857
857
  expect(response.body.data[0].email).toBe(user.email)
858
858
  })
859
859
 
860
+ it("should support fuzzy email fragments", async () => {
861
+ const email = `search-like-user-${Date.now()}@example.com`
862
+ await config.createUser({ email })
863
+ const fragment = email.slice(3, 12)
864
+ const response = await config.api.users.searchUsers({
865
+ query: { fuzzy: { email: fragment } },
866
+ })
867
+ expect(response.body.data.length).toBe(1)
868
+ expect(response.body.data[0].email).toBe(email)
869
+ })
870
+
860
871
  it("should be able to search by email with numeric prefixing", async () => {
861
872
  const user = await config.createUser()
862
873
  const response = await config.api.users.searchUsers({