fix 少写了await

This commit is contained in:
wkj 2024-03-07 13:33:32 +08:00
parent 23162dc997
commit 7a2efb03cf
3 changed files with 6 additions and 6 deletions

View File

@ -80,7 +80,7 @@ export function createComponent(option, features) {
async subscribeMpMessage(messageTypes, haveToAccept, tip) {
return await subscribeMpMessage.call(this, messageTypes, haveToAccept, tip);
},
getMessageTypeTemplate() {
async getMessageTypeTemplate() {
if (relatedMessageTypes) {
try {
const applicationId = this.features.application.getApplicationId();
@ -105,7 +105,7 @@ export function createComponent(option, features) {
},
});
if (existedOnes.length === 0) {
this.features.cache.refresh('messageTypeTemplate', {
await this.features.cache.refresh('messageTypeTemplate', {
data: {
id: 1,
templateId: 1,

View File

@ -84,7 +84,7 @@ function createComponent(option, features) {
async subscribeMpMessage(messageTypes, haveToAccept, tip) {
return await subscribeMpMessage.call(this, messageTypes, haveToAccept, tip);
},
getMessageTypeTemplate() {
async getMessageTypeTemplate() {
if (relatedMessageTypes) {
try {
const applicationId = this.features.application.getApplicationId();
@ -109,7 +109,7 @@ function createComponent(option, features) {
},
});
if (existedOnes.length === 0) {
this.features.cache.refresh('messageTypeTemplate', {
await this.features.cache.refresh('messageTypeTemplate', {
data: {
id: 1,
templateId: 1,

View File

@ -182,7 +182,7 @@ export function createComponent<
tip
);
},
getMessageTypeTemplate() {
async getMessageTypeTemplate() {
if (relatedMessageTypes) {
try {
const applicationId =
@ -211,7 +211,7 @@ export function createComponent<
}
);
if (existedOnes.length === 0) {
this.features.cache.refresh(
await this.features.cache.refresh(
'messageTypeTemplate',
{
data: {