mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-07-04 08:20:13 +02:00
fix: setup status doesn't change
This commit is contained in:
parent
b14e931d8d
commit
064ef38d78
|
@ -77,9 +77,13 @@ export class ConfigService {
|
||||||
}
|
}
|
||||||
|
|
||||||
async changeSetupStatus(status: "STARTED" | "REGISTERED" | "FINISHED") {
|
async changeSetupStatus(status: "STARTED" | "REGISTERED" | "FINISHED") {
|
||||||
return await this.prisma.config.update({
|
const updatedVariable = await this.prisma.config.update({
|
||||||
where: { key: "SETUP_STATUS" },
|
where: { key: "SETUP_STATUS" },
|
||||||
data: { value: status },
|
data: { value: status },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.configVariables = await this.prisma.config.findMany();
|
||||||
|
|
||||||
|
return updatedVariable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user