mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
fix: setup status doesn't change
This commit is contained in:
parent
b14e931d8d
commit
064ef38d78
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue