MOBILE-4653 chore: Mixture of typos
parent
17115a2ce3
commit
efd364f285
|
@ -254,7 +254,7 @@ export class AddonModForumHelperProvider {
|
||||||
async deleteNewDiscussionStoredFiles(forumId: number, timecreated: number, siteId?: string): Promise<void> {
|
async deleteNewDiscussionStoredFiles(forumId: number, timecreated: number, siteId?: string): Promise<void> {
|
||||||
const folderPath = await AddonModForumOffline.getNewDiscussionFolder(forumId, timecreated, siteId);
|
const folderPath = await AddonModForumOffline.getNewDiscussionFolder(forumId, timecreated, siteId);
|
||||||
|
|
||||||
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exist.
|
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exist.
|
||||||
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ export class AddonModForumHelperProvider {
|
||||||
async deleteReplyStoredFiles(forumId: number, postId: number, siteId?: string, userId?: number): Promise<void> {
|
async deleteReplyStoredFiles(forumId: number, postId: number, siteId?: string, userId?: number): Promise<void> {
|
||||||
const folderPath = await AddonModForumOffline.getReplyFolder(forumId, postId, siteId, userId);
|
const folderPath = await AddonModForumOffline.getReplyFolder(forumId, postId, siteId, userId);
|
||||||
|
|
||||||
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exist.
|
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exist.
|
||||||
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ export class AddonModWorkshopHelperProvider {
|
||||||
async deleteSubmissionStoredFiles(workshopId: number, siteId?: string): Promise<void> {
|
async deleteSubmissionStoredFiles(workshopId: number, siteId?: string): Promise<void> {
|
||||||
const folderPath = await AddonModWorkshopOffline.getSubmissionFolder(workshopId, siteId);
|
const folderPath = await AddonModWorkshopOffline.getSubmissionFolder(workshopId, siteId);
|
||||||
|
|
||||||
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exists.
|
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exists.
|
||||||
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ export class AddonModWorkshopHelperProvider {
|
||||||
async deleteAssessmentStoredFiles(workshopId: number, assessmentId: number, siteId?: string): Promise<void> {
|
async deleteAssessmentStoredFiles(workshopId: number, assessmentId: number, siteId?: string): Promise<void> {
|
||||||
const folderPath = await AddonModWorkshopOffline.getAssessmentFolder(workshopId, assessmentId, siteId);
|
const folderPath = await AddonModWorkshopOffline.getAssessmentFolder(workshopId, assessmentId, siteId);
|
||||||
|
|
||||||
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exists.
|
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exists.
|
||||||
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -802,8 +802,8 @@ export class CoreLoginHelperProvider {
|
||||||
loginUrl = CoreUrl.addParamsToUrl(loginUrl, urlParams);
|
loginUrl = CoreUrl.addParamsToUrl(loginUrl, urlParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the siteurl and passport in CoreConfigProvider for persistence.
|
// Store the siteurl and passport in CoreConfig for persistence.
|
||||||
// We are "configuring" the app to wait for an SSO. CoreConfigProvider shouldn't be used as a temporary storage.
|
// We are "configuring" the app to wait for an SSO. CoreConfig shouldn't be used as a temporary storage.
|
||||||
await CoreConfig.set(CoreConstants.LOGIN_LAUNCH_DATA, JSON.stringify(<StoredLoginLaunchData> {
|
await CoreConfig.set(CoreConstants.LOGIN_LAUNCH_DATA, JSON.stringify(<StoredLoginLaunchData> {
|
||||||
siteUrl: siteUrl,
|
siteUrl: siteUrl,
|
||||||
passport: passport,
|
passport: passport,
|
||||||
|
|
|
@ -34,7 +34,7 @@ export const XAPI_STATE_DELETED = 'STATE_DELETED';
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
export class CoreXAPIProvider {
|
export class CoreXAPIProvider {
|
||||||
|
|
||||||
static readonly ROOT_CACHE_KEY = 'CoreXAPI:';
|
protected static readonly ROOT_CACHE_KEY = 'CoreXAPI:';
|
||||||
|
|
||||||
protected logger = CoreLogger.getInstance('CoreXAPIProvider');
|
protected logger = CoreLogger.getInstance('CoreXAPIProvider');
|
||||||
|
|
||||||
|
|
|
@ -26,11 +26,7 @@ export class CoreSiteInfoCronHandlerService implements CoreCronHandler {
|
||||||
name = 'CoreSiteInfoCronHandler';
|
name = 'CoreSiteInfoCronHandler';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the process.
|
* @inheritdoc
|
||||||
* Receives the ID of the site affected, undefined for all sites.
|
|
||||||
*
|
|
||||||
* @param siteId ID of the site affected, undefined for all sites.
|
|
||||||
* @returns Promise resolved when done, rejected on failure.
|
|
||||||
*/
|
*/
|
||||||
async execute(siteId?: string): Promise<void> {
|
async execute(siteId?: string): Promise<void> {
|
||||||
if (!siteId) {
|
if (!siteId) {
|
||||||
|
@ -43,18 +39,14 @@ export class CoreSiteInfoCronHandlerService implements CoreCronHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns handler's interval in milliseconds. Defaults to CoreCronDelegateService.DEFAULT_INTERVAL.
|
* @inheritdoc
|
||||||
*
|
|
||||||
* @returns Interval time (in milliseconds).
|
|
||||||
*/
|
*/
|
||||||
getInterval(): number {
|
getInterval(): number {
|
||||||
return 10800000; // 3 hours.
|
return 10800000; // 3 hours.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether it's a synchronization process or not. True if not defined.
|
* @inheritdoc
|
||||||
*
|
|
||||||
* @returns Whether it's a synchronization process or not.
|
|
||||||
*/
|
*/
|
||||||
isSync(): boolean {
|
isSync(): boolean {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue