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
@@ -1,17 +0,0 @@
|
||||
import {c} from '../core/db';
|
||||
|
||||
export async function getCollective(query={}) {
|
||||
return await c('collective')
|
||||
.find(query)
|
||||
.toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Find a person by it's id
|
||||
*
|
||||
* @param id
|
||||
* @returns {Promise|*}
|
||||
*/
|
||||
export async function getPerson(id){
|
||||
return await c('collective').findOne({id: id});
|
||||
}
|
||||
Reference in new issue
Block a user