schedule/collective files move to server
This commit is contained in:
1 parent
c1d8ab3b97
commit
1f2b61cc29
6 files changed
+31
-33
No files matched your search
@@ -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 });
|
||||
}
|
||||
Reference in new issue
Block a user