|
@@ -2,7 +2,7 @@ const db = require("../db.js");
|
|
|
const CryptoJS = require('crypto-js');
|
|
|
|
|
|
const CARDS_SEARCH_CRITERIA = {
|
|
|
- 'lt': 'card;',
|
|
|
+ 'lt': 'card;', //TODO card; h card:?
|
|
|
'gt': 'card:'
|
|
|
};
|
|
|
|
|
@@ -35,6 +35,6 @@ class CardsRepository {
|
|
|
|
|
|
let cardsRepository = null;
|
|
|
function getSingleton() {
|
|
|
- return cardsRepository = (cardsRepository === null ? new CardsRepository(): userRepository);
|
|
|
+ return cardsRepository = (cardsRepository === null ? new CardsRepository(): cardsRepository);
|
|
|
}
|
|
|
module.exports = getSingleton();
|