schedule/collective files move to server

This commit is contained in:
tmshv committed 2019-10-14 17:47:02 +03:00
1 parent c1d8ab3b97
commit 1f2b61cc29
6 files changed
+31 -33

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
const { collection } = require('../core/db')
// import { collection } from '../core/db'
export async function getCollective(query = {}) {
return await collection('collective')
.find(query)
.toArray();
}
/**
* Find a person by it's id
*
* @param id
* @returns {Promise|*}
*/
export async function getPerson(id) {
return await collection('collective').findOne({ id: id });
}