fix: Don't compute connectionAllowed column twice

This commit is contained in:
Faruk AYDIN
2024-10-17 16:27:55 +02:00
parent de72e62470
commit 2583e08f7a

View File

@@ -63,7 +63,8 @@ class AppAuthClient extends Base {
async triggerAppConfigUpdate() {
const appConfig = await this.$relatedQuery('appConfig');
await appConfig?.updateConnectionAllowedProperty();
// This is a workaround to update connection allowed column for AppConfig
await appConfig?.$query().patch({});
}
// TODO: Make another abstraction like beforeSave instead of using