Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Removed password from accounts query. Closes #1153.

Mike Caoca385af8c445
diff --git a/lib/queries.js b/lib/queries.js
index bb6b93954..0e93244e7 100644
--- a/lib/queries.js
+++ b/lib/queries.js
@@ -315,6 +315,13 @@ export async function getAccounts() {
username: 'asc',
},
],
+ select: {
+ user_id: true,
+ username: true,
+ is_admin: true,
+ created_at: true,
+ updated_at: true,
+ },
}),
);
}