view updates
This commit is contained in:
@@ -66,12 +66,10 @@ export async function getDefaultViews(
|
||||
const recInDb = await defaultViewModel.findOne({ userId: user.userId });
|
||||
if (!recInDb) return {};
|
||||
|
||||
console.log(recInDb.defaultViews);
|
||||
|
||||
const viewId = recInDb.defaultViews[collection];
|
||||
if (!viewId) return {};
|
||||
|
||||
return await viewModel.find({ pid: viewId });
|
||||
return await viewModel.findOne({ pid: viewId });
|
||||
}
|
||||
|
||||
export async function updateDefaultView(
|
||||
|
||||
Reference in New Issue
Block a user