mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Lists.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
ad9daba60d
commit
9e557f6887
7 changed files with 12 additions and 12 deletions
|
@ -763,7 +763,7 @@ Boards.helpers({
|
|||
* @returns Document the last list
|
||||
*/
|
||||
getLastList() {
|
||||
const ret = Lists.findOne({ boardId: this._id }, { sort: { sort: 'desc' } });
|
||||
const ret = ReactiveCache.getList({ boardId: this._id }, { sort: { sort: 'desc' } });
|
||||
return ret;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue