refactor: pop even on prod
This commit is contained in:
parent
4f7a52cc4c
commit
8242717182
|
@ -1,15 +1,15 @@
|
|||
import {Hooks} from '@flecks/core';
|
||||
|
||||
const {
|
||||
NODE_ENV,
|
||||
} = process.env;
|
||||
// const {
|
||||
// NODE_ENV,
|
||||
// } = process.env;
|
||||
|
||||
export default {
|
||||
[Hooks]: {
|
||||
'@flecks/server.up': async (flecks) => {
|
||||
if ('production' === NODE_ENV) {
|
||||
return;
|
||||
}
|
||||
// if ('production' === NODE_ENV) {
|
||||
// return;
|
||||
// }
|
||||
const {Project, User} = flecks.get('$flecks/db.models');
|
||||
if (!await User.findOne({where: {email: 'persea@cha0s.io'}})) {
|
||||
const user = await User.create({
|
||||
|
|
Loading…
Reference in New Issue
Block a user