decks.js 298 B

1234567891011121314
  1. const db = require("../db.js");
  2. class DecksRepository {
  3. //TODO continue
  4. getDecksByUser(userid) {
  5. }
  6. }
  7. let decksRepository = null;
  8. function getSingleton() {
  9. return decksRepository = (decksRepository === null ? new DecksRepository(): decksRepository);
  10. }
  11. module.exports = getSingleton();