Skip to content

Commit

Permalink
TW-1364 Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
keshan3262 committed Apr 10, 2024
1 parent d185241 commit 3395e07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/advertising/external-ads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const adProvidersByDomainRulesMethods = objectStorageMethodsFactory<AdPro
);

/** @deprecated */
export const sliseAdProvidersMethodsLegacy = objectStorageMethodsFactory<string[]>(SLISE_AD_PROVIDERS_LIST_KEY, []);
export const adProvidersMethodsLegacy = objectStorageMethodsFactory<string[]>(SLISE_AD_PROVIDERS_LIST_KEY, []);

export const adProvidersMethods = objectStorageMethodsFactory<AdProviderSelectorsRule[]>(AD_PROVIDERS_LIST_KEY, []);

Expand Down
4 changes: 2 additions & 2 deletions src/routers/slise-ad-rules/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
* name: Known ads providers
* components:
* schemas:
* SliseAdProvidersByDomainRule:
* AdProvidersByDomainRule:
* type: object
* required:
* - urlRegexes
Expand All @@ -45,7 +45,7 @@ import {
* providers:
* - 'coinzilla'
* - 'bitmedia'
* SliseAdProvidersByDomainsRulesDictionary:
* AdProvidersByDomainsRulesDictionary:
* type: object
* additionalProperties:
* type: array
Expand Down
4 changes: 2 additions & 2 deletions src/utils/migrations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { adProvidersMethods, sliseAdProvidersMethodsLegacy } from '../advertising/external-ads';
import { adProvidersMethods, adProvidersMethodsLegacy } from '../advertising/external-ads';
import { redisClient } from '../redis';
import { isDefined } from './helpers';
import logger from './logger';
Expand All @@ -7,7 +7,7 @@ const DATA_VERSION_STORAGE_KEY = 'data_version';

const migrations = {
'1': async () => {
const oldSliseAdsProviders = await sliseAdProvidersMethodsLegacy.getAllValues();
const oldSliseAdsProviders = await adProvidersMethodsLegacy.getAllValues();
await adProvidersMethods.upsertValues(
Object.fromEntries(
Object.entries(oldSliseAdsProviders).map(([providerName, selectors]) => [providerName, [{ selectors }]])
Expand Down

0 comments on commit 3395e07

Please sign in to comment.