Skip to content

Commit

Permalink
Changes singleton uid creation to use driver uid (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Mar 21, 2013
1 parent 4591743 commit 366225f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 366225f

Please sign in to comment.