chore: revert #1794 for now until permanent init architecture is established

This commit is contained in:
James
2023-01-11 09:32:44 -05:00
parent 96002dbda5
commit 047efe02ff
7 changed files with 58 additions and 36 deletions

View File

@@ -4,8 +4,9 @@ import { v4 as uuid } from 'uuid';
import payload from '../src';
const expressApp = express();
const init = async () => {
await payload.init({
await payload.initAsync({
secret: uuid(),
mongoURL: process.env.MONGO_URL || 'mongodb://localhost/payload',
express: expressApp,