fix: seed
This commit is contained in:
parent
40d294a247
commit
9c6092f31f
@ -44,16 +44,14 @@ async function main() {
|
|||||||
|
|
||||||
// Set auto-update based on env variable
|
// Set auto-update based on env variable
|
||||||
const isAutoUpdateEnabled = process.env['COOLIFY_AUTO_UPDATE'] === 'true';
|
const isAutoUpdateEnabled = process.env['COOLIFY_AUTO_UPDATE'] === 'true';
|
||||||
if (settings) {
|
await prisma.setting.update({
|
||||||
await prisma.setting.update({
|
where: {
|
||||||
where: {
|
id: '0'
|
||||||
id: '0'
|
},
|
||||||
},
|
data: {
|
||||||
data: {
|
isAutoUpdateEnabled
|
||||||
isAutoUpdateEnabled
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
const github = await prisma.gitSource.findFirst({
|
const github = await prisma.gitSource.findFirst({
|
||||||
where: { htmlUrl: 'https://github.com', forPublic: true }
|
where: { htmlUrl: 'https://github.com', forPublic: true }
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user