[Calendar] Introduce permissions for editing events
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
export async function getMoneyData(networkId) {
|
||||
const purchases = await this.sql`
|
||||
const purchases = await context.sql`
|
||||
SELECT * FROM purchases
|
||||
WHERE network_id = ${networkId}
|
||||
ORDER BY created DESC
|
||||
`;
|
||||
|
||||
const subscriptions = await this.sql`
|
||||
const subscriptions = await context.sql`
|
||||
SELECT mn.id, mn.created, mn.active, mn.network_plan_id,
|
||||
np.name AS plan_name, np.price AS plan_price,
|
||||
m.first_name, m.last_name, m.email
|
||||
|
||||
Reference in New Issue
Block a user