+ CLOUD PAGES; style updated; other changes

This commit is contained in:
tmshv committed 2016-11-12 05:17:10 +03:00
1 parent dad12f52f4
commit edf5fbf4bd
27 files changed
+339 -161

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import {c} from '../core/db';
const PAGES = 'pages';
export async function getPageUrls() {
return await c(PAGES)
.find({}, {url: 1})
.toArray();
}
/**
* Find a person by it's id
*
* @param {string} url
* @returns {Promise|*}
*/
export async function getPage(url) {
return await c(PAGES).findOne({url: url});
}