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

Fix counting of entries

parent 2574e4a1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -104,7 +104,9 @@ export class DbRoomStore {
* @returns {number} The amount of room pairs as an integer
*/
public async countEntries() {
const row = (await this.db.Get("SELECT COUNT(*) FROM room_entries WHERE matrix_id IS NOT NULL AND remote_id IS NOT NULL")) || {};
const row = (await this.db.Get("SELECT COUNT(*) AS count FROM room_entries WHERE matrix_id IS NOT NULL AND remote_id IS NOT NULL")) || {};
console.warn('abc', JSON.stringify(row), typeof row.count);
if (typeof row.count !== "number") {
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