Skip to content
Extraits de code Groupes Projets
Valider bb61edb5 rédigé par Christian Paul's avatar Christian Paul
Parcourir les fichiers

Require matrix_id and remote_id to be not null

parent bfe7858f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -104,7 +104,7 @@ export class DbRoomStore { ...@@ -104,7 +104,7 @@ export class DbRoomStore {
* @returns {number} The amount of room pairs as an integer * @returns {number} The amount of room pairs as an integer
*/ */
public async countEntries() { public async countEntries() {
const row = (await this.db.Get("SELECT COUNT(*) FROM room_entries")) || {}; const row = (await this.db.Get("SELECT COUNT(*) FROM room_entries WHERE matrix_id IS NOT NULL AND remote_id IS NOT NULL")) || {};
if (typeof row.count !== "number") { if (typeof row.count !== "number") {
log.error("Failed to count room entries"); log.error("Failed to count room entries");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter