fix(all): Create bot working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-19 07:53:44 -03:00
parent 182d6c4ac8
commit 3fa53d072b

View file

@ -192,7 +192,7 @@ export class GBAdminService implements IGBAdminService {
public async setValue(instanceId: number, key: string, value: string) {
const options = <FindOptions>{ where: {} };
options.where = { key: key };
options.where = { key: key, instanceId: instanceId };
let admin = await GuaribasAdmin.findOne(options);
if (admin === null) {
admin = new GuaribasAdmin();