Formatting
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { requireAuth } from 'src/lib/auth'
|
||||
import {sendMail} from 'src/lib/sendmail'
|
||||
import {users} from 'src/services/users/users'
|
||||
import { sendMail } from 'src/lib/sendmail'
|
||||
import { users } from 'src/services/users/users'
|
||||
|
||||
export const sendAllUsersEmail = async ({input: {body, subject}}) => {
|
||||
export const sendAllUsersEmail = async ({ input: { body, subject } }) => {
|
||||
requireAuth({ role: 'admin' })
|
||||
const recipients = (await users()).map(({email}) => email)
|
||||
const recipients = (await users()).map(({ email }) => email)
|
||||
const from = {
|
||||
address:'news@mail.cadhub.xyz',
|
||||
address: 'news@mail.cadhub.xyz',
|
||||
name: 'CadHub',
|
||||
}
|
||||
const result = await sendMail({
|
||||
|
||||
Reference in New Issue
Block a user