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