In readall, the verified status is also sent.

This commit is contained in:
2017-05-13 13:21:17 +02:00
parent 9f67354bd4
commit c4a1fb5c78

View File

@@ -13,7 +13,7 @@ class StrayRepository {
this.database = database || establishedDatabase;
this.queries = {
'read': 'SELECT * FROM stray_eps WHERE id = ?',
'readAll': 'SELECT id, name, season, episode FROM stray_eps',
'readAll': 'SELECT id, name, season, episode, verified FROM stray_eps',
'checkVerified': 'SELECT id FROM stray_eps WHERE verified = 0 AND id = ?',
'verify': 'UPDATE stray_eps SET verified = 1 WHERE id = ?',
};
@@ -33,6 +33,7 @@ class StrayRepository {
stray.name = row.name;
stray.season = row.season;
stray.episode = row.episode;
stray.verified = row.verified;
return stray;
}))
}