From 9c6092f31f03c04744cc15e6b2d15f1574a70711 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 28 Nov 2022 12:53:44 +0100 Subject: [PATCH] fix: seed --- apps/api/prisma/seed.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/api/prisma/seed.js b/apps/api/prisma/seed.js index 28017e7ce..495bd30a8 100644 --- a/apps/api/prisma/seed.js +++ b/apps/api/prisma/seed.js @@ -44,16 +44,14 @@ async function main() { // Set auto-update based on env variable const isAutoUpdateEnabled = process.env['COOLIFY_AUTO_UPDATE'] === 'true'; - if (settings) { - await prisma.setting.update({ - where: { - id: '0' - }, - data: { - isAutoUpdateEnabled - } - }); - } + await prisma.setting.update({ + where: { + id: '0' + }, + data: { + isAutoUpdateEnabled + } + }); const github = await prisma.gitSource.findFirst({ where: { htmlUrl: 'https://github.com', forPublic: true } });