mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Remove non-null assertions for Db collections (#3111)
* 📘 Remove unions to `null` * ⚡ Track `Db` initialization state * 🔥 Remove non-null assertions * 👕 Remove lint exceptions * 🔥 Remove leftover assertion
This commit is contained in:
@@ -72,8 +72,7 @@ export class UpdateWorkflowCommand extends Command {
|
||||
findQuery.active = true;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
await Db.collections.Workflow!.update(findQuery, updateQuery);
|
||||
await Db.collections.Workflow.update(findQuery, updateQuery);
|
||||
console.info('Done');
|
||||
} catch (e) {
|
||||
console.error('Error updating database. See log messages for details.');
|
||||
|
||||
Reference in New Issue
Block a user