Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/admin-ui/src/components/NotificationsMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function NotificationsView() {
useEffect(() => {
const interval = setInterval(() => {
notificationsCall.revalidate();
}, 60 * 1000); // Re-fecthes banner notifications every minute
}, 60 * 1000); // Re-fetches banner notifications every minute

return () => clearInterval(interval);
}, []);
Expand Down
2 changes: 1 addition & 1 deletion packages/dappmanager/src/api/auth/sessionAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class AuthPasswordSession {
throw new NotLoggedInError();
}
} else {
// Sanity check for cookie existance
// Sanity check for cookie existence
if (req.cookies) throw new NotLoggedInError();
else throw new NotLoggedInNoCookieError();
}
Expand Down
6 changes: 3 additions & 3 deletions packages/installer/src/dappGet/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export default async function dappGetBasic(
const dependencies = await dappGetFetcher.dependencies(dappnodeInstaller, req.name, req.ver);

// Append dependencies in the list of DNPs to install
// Add current request to pacakages to install
// Add current request to packages to install
const state = {
...dependencies,
[req.name]: req.ver
};
const alreadyUpdated: DappGetState = {};
const currentVersions: DappGetState = {};

// The function below does not directly affect funcionality.
// The function below does not directly affect functionality.
// However it would prevent already installed DNPs from installing
try {
const installedDnps = await listPackages();
Expand All @@ -39,7 +39,7 @@ export default async function dappGetBasic(
const nextVersion = state[dnp.dnpName];
if (nextVersion && !shouldUpdate(prevVersion, nextVersion)) {
// DNP is already updated.
// Remove from the success object and add it to the alreadyUpdatedd
// Remove from the success object and add it to the alreadyUpdated
alreadyUpdated[dnp.dnpName] = state[dnp.dnpName];
delete state[dnp.dnpName];
}
Expand Down
6 changes: 3 additions & 3 deletions packages/installer/src/dappGet/dappGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface DappgetOptions {
* Aggregates all relevant packages and their info given a specific request.
* The resulting "repo" (dnps) is run through a brute force resolver.
* It returns success when finds the first compatible combination of versions.
* Otherwise it will return an error formated object
* Otherwise it will return an error formatted object
*
* The criteria to qualify the "first" found combination is:
* - The requested package has the highest version
Expand Down Expand Up @@ -96,7 +96,7 @@ export async function dappGet(
}

const { success, message, state } = result;
// If the request could not be resolved, output a formated error:
// If the request could not be resolved, output a formatted error:
if (!success) throw Error(`Could not find compatible state. ${message}`);

// Otherwise, format the output
Expand All @@ -107,7 +107,7 @@ export async function dappGet(
const nextVersion = state[dnp.dnpName];
if (nextVersion && !shouldUpdate(prevVersion, nextVersion)) {
// DNP is already updated.
// Remove from the success object and add it to the alreadyUpdatedd
// Remove from the success object and add it to the alreadyUpdated
alreadyUpdated[dnp.dnpName] = state[dnp.dnpName];
delete state[dnp.dnpName];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function getInstallerPackageData(
manifest: release.manifest.notifications
? {
...release.manifest,
// Apply notitications user settings if any otherwise use the default manifest notifications
// Apply notifications user settings if any otherwise use the default manifest notifications
notifications: notificationsSettings ?? release.manifest.notifications
}
: manifest,
Expand Down
2 changes: 1 addition & 1 deletion packages/notifications/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class NotificationsManifest {
// If no previous version exists, return the new custom endpoint as-is
if (!oldCustomEndpoint) return newCustomEndpoint;

// Copy all fields from the new custom endpoint, but preserve old enabled and metric.treshold
// Copy all fields from the new custom endpoint, but preserve old enabled and metric.threshold
const mergedCustomEndpoint: CustomEndpoint = { ...newCustomEndpoint, enabled: oldCustomEndpoint.enabled };
if (mergedCustomEndpoint.metric && oldCustomEndpoint.metric && oldCustomEndpoint.metric.treshold !== undefined) {
mergedCustomEndpoint.metric.treshold = oldCustomEndpoint.metric.treshold;
Expand Down