MOBILE-3833 core: Fix invalidateWsCacheForKeyStartingWith

main
Dani Palou 2022-03-01 08:20:58 +01:00
parent 8600f741bb
commit 46e6bfc6a2
2 changed files with 4 additions and 2 deletions

View File

@ -95,7 +95,9 @@ export class AddonModBBBIndexComponent extends CoreCourseModuleMainActivityCompo
return;
}
this.meetingInfo = await AddonModBBB.getMeetingInfo(this.bbb.id, this.groupId);
this.meetingInfo = await AddonModBBB.getMeetingInfo(this.bbb.id, this.groupId, {
cmId: this.module.id,
});
if (this.meetingInfo.statusrunning && this.meetingInfo.userlimit > 0) {
const count = (this.meetingInfo.participantcount || 0) + (this.meetingInfo.moderatorcount || 0);

View File

@ -1217,7 +1217,7 @@ export class CoreSite {
await this.cacheTable.updateWhere({ expirationTime: 0 }, {
sql: 'key LIKE ?',
sqlParams: [key],
sqlParams: [key + '%'],
js: record => !!record.key?.startsWith(key),
});
}