revert things

This commit is contained in:
Andras Bacsai
2022-10-04 22:00:50 +02:00
parent 430d51866c
commit 702798c275
4 changed files with 77 additions and 59 deletions

View File

@@ -140,9 +140,27 @@ export const asyncExecShellStream = async ({
export const asyncSleep = (delay: number): Promise<unknown> =>
new Promise((resolve) => setTimeout(resolve, delay));
export const prisma = () => {
return null
}
export const prisma = new PrismaClient({
errorFormat: 'minimal'
// log: [
// {
// emit: 'event',
// level: 'query',
// },
// {
// emit: 'stdout',
// level: 'error',
// },
// {
// emit: 'stdout',
// level: 'info',
// },
// {
// emit: 'stdout',
// level: 'warn',
// },
// ],
});
// prisma.$on('query', (e) => {
// console.log({e})

View File

@@ -18,10 +18,10 @@ const options: any = {
}
}
},
// jobs: [
// { name: 'infrastructure' },
// { name: 'deployApplication' },
// ],
jobs: [
{ name: 'infrastructure' },
{ name: 'deployApplication' },
],
};
if (isDev) options.root = path.join(__dirname, '../jobs');