Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Case

Manav Rathi8fbc7b393745
diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsx
index a46f2f867c..98e9295320 100644
--- a/web/apps/auth/src/pages/_app.tsx
+++ b/web/apps/auth/src/pages/_app.tsx
@@ -82,8 +82,8 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
useEffect(() => {
void setupI18n().finally(() => setIsI18nReady(true));
- const userId = (getData(LS_KEYS.USER) as User)?.id;
- logStartupBanner(appName, userId);
+ const userID = (getData(LS_KEYS.USER) as User)?.id;
+ logStartupBanner(appName, userID);
logUnhandledErrorsAndRejections(true);
setAppNameForAuthenticatedRequests(appName);
HTTPService.setHeaders({
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index a012881fb9..69302f8def 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -148,8 +148,8 @@ export default function App({ Component, pageProps }: AppProps) {
useEffect(() => {
void setupI18n().finally(() => setIsI18nReady(true));
- const userId = (getData(LS_KEYS.USER) as User)?.id;
- logStartupBanner(appName, userId);
+ const userID = (getData(LS_KEYS.USER) as User)?.id;
+ logStartupBanner(appName, userID);
logUnhandledErrorsAndRejections(true);
setAppNameForAuthenticatedRequests(appName);
HTTPService.setHeaders({
diff --git a/web/packages/next/log-web.ts b/web/packages/next/log-web.ts
index e0fb39e265..c419d206b6 100644
--- a/web/packages/next/log-web.ts
+++ b/web/packages/next/log-web.ts
@@ -8,9 +8,9 @@ import { appNames, type AppName } from "./types/app";
* This helps us identify app starts and other environment details in the logs.
*
* @param appName The {@link AppName} of the app that is starting.
- * @param userId The uid for the currently logged in user, if any.
+ * @param userID The uid for the currently logged in user, if any.
*/
-export const logStartupBanner = (appName: AppName, userId?: number) => {
+export const logStartupBanner = (appName: AppName, userID?: number) => {
// Log a warning if appName isn't what it claims to be. See the
// documentation of `appName` for why this is needed.
if (!appNames.includes(appName)) {
@@ -20,8 +20,8 @@ export const logStartupBanner = (appName: AppName, userId?: number) => {
}
const sha = process.env.gitSHA;
- const buildId = isDevBuild ? "dev " : sha ? `git ${sha} ` : "";
- log.info(`Starting ente-${appName}-web ${buildId}uid ${userId ?? 0}`);
+ const buildID = isDevBuild ? "dev " : sha ? `git ${sha} ` : "";
+ log.info(`Starting ente-${appName}-web ${buildID}uid ${userID ?? 0}`);
};
/**