diff --git a/lib/Model.js b/lib/Model.js index f3c3379d..cac2e1d6 100644 --- a/lib/Model.js +++ b/lib/Model.js @@ -150,7 +150,7 @@ function Model(opts) { if (data.length === 0) { return cb(new Error("Not found")); } - Singleton.get(opts.table + "/" + id, { + Singleton.get(opts.driver.uid + "/" + opts.table + "/" + id, { cache : options.cache, save_check : opts.settings.get("instance.cacheSaveCheck") }, function (cb) { @@ -226,7 +226,7 @@ function Model(opts) { merge : merge, offset : options.offset, newInstance: function (data, cb) { - Singleton.get(opts.table + (merge ? "+" + merge.from.table : "") + "/" + data[opts.id], { + Singleton.get(opts.driver.uid + "/" + opts.table + (merge ? "+" + merge.from.table : "") + "/" + data[opts.id], { cache : options.cache, save_check : opts.settings.get("instance.cacheSaveCheck") }, function (cb) {