Fix Vue property conflicts in PlatformServiceMixin implementation

- Remove duplicate property declarations from TopMessage component
- Use (this as any) type assertion for mixin methods
- Resolves 'Data property already defined' warnings
- Fixes 'this.dbQuery is not a function' runtime errors
This commit is contained in:
Matthew Raymer
2025-07-02 09:58:07 +00:00
parent 7b1f891c63
commit b37f1d1d84
11 changed files with 446 additions and 158 deletions

View File

@@ -59,7 +59,7 @@ class AbsurdSqlDatabaseService implements DatabaseService {
await this.initializationPromise;
} catch (error) {
// logger.error(`AbsurdSqlDatabaseService initialize method failed:`, error); // DISABLED
console.error(`AbsurdSqlDatabaseService initialize method failed:`, error);
logger.error(`AbsurdSqlDatabaseService initialize method failed:`, error);
this.initializationPromise = null; // Reset on failure
throw error;
}
@@ -153,7 +153,7 @@ class AbsurdSqlDatabaseService implements DatabaseService {
// " ... with params:",
// operation.params,
// );
console.error(
logger.error(
"Error while processing SQL queue:",
error,
" ... for sql:",
@@ -208,7 +208,7 @@ class AbsurdSqlDatabaseService implements DatabaseService {
// logger.error( // DISABLED
// `Database not properly initialized after await waitForInitialization() - initialized flag is true but db is null`,
// );
console.error(
logger.error(
`Database not properly initialized after await waitForInitialization() - initialized flag is true but db is null`,
);
throw new Error(