@rtsdk/topia 0.8.1 → 0.8.2
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/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41368,9 +41368,10 @@ class Visitor extends User {
|
|
|
41368
41368
|
try {
|
|
41369
41369
|
let expressionId = id;
|
|
41370
41370
|
if (name) {
|
|
41371
|
-
|
|
41371
|
+
const response = yield this.topiaPublicApi().get(`/expressions?name=${name}`, this.requestOptions);
|
|
41372
|
+
expressionId = response.data[0].id;
|
|
41372
41373
|
}
|
|
41373
|
-
const result = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/grant-expression/${
|
|
41374
|
+
const result = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/grant-expression/${id}`, {}, this.requestOptions);
|
|
41374
41375
|
return result;
|
|
41375
41376
|
}
|
|
41376
41377
|
catch (error) {
|
package/dist/index.js
CHANGED
|
@@ -41366,9 +41366,10 @@ class Visitor extends User {
|
|
|
41366
41366
|
try {
|
|
41367
41367
|
let expressionId = id;
|
|
41368
41368
|
if (name) {
|
|
41369
|
-
|
|
41369
|
+
const response = yield this.topiaPublicApi().get(`/expressions?name=${name}`, this.requestOptions);
|
|
41370
|
+
expressionId = response.data[0].id;
|
|
41370
41371
|
}
|
|
41371
|
-
const result = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/grant-expression/${
|
|
41372
|
+
const result = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/grant-expression/${id}`, {}, this.requestOptions);
|
|
41372
41373
|
return result;
|
|
41373
41374
|
}
|
|
41374
41375
|
catch (error) {
|
package/package.json
CHANGED