Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: seed

Andras Bacsai9c6092f31f03
diff --git a/apps/api/prisma/seed.js b/apps/api/prisma/seed.js
index 28017e7cec..495bd30a85 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 }
});