Skip to content

Commit c90fc48

Browse files
committed
add msg q to list act
1 parent 52a3f65 commit c90fc48

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

dist/tillo-provider.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tillo-provider.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tillo-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function TilloProvider(this: any, options: TilloProviderOptions) {
9595
this.shared.headers.Accept = "application/json"
9696

9797
let json: any =
98-
await getJSON(makeUrl(path + "?detail=true", msg.q), makeConfig())
98+
await getJSON(makeUrl(path, msg.q), makeConfig())
9999
let brands = json.data.brands
100100
let list = Object.entries(brands).map(([name, value]: any) => entize({ name, value }))
101101
return list

test/tillo-provider.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ describe('tillo-provider', () => {
4747
// if (!Config) return;
4848
// const seneca = await makeSeneca()
4949
//
50-
// const list = await seneca.entity("provider/tillo/brand").list$()
50+
// const list = await seneca.entity("provider/tillo/brand").list$({
51+
// detail: true,
52+
// currency: "GBP",
53+
// country: "GB"
54+
// })
5155
// console.log('BRANDS', list)
5256
//
5357
// expect(list.length > 0).toBeTruthy()

0 commit comments

Comments
 (0)