mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
fix: backup restore formatting
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { BadRequestException, ExecutionContext, Logger, UnauthorizedException } from '@nestjs/common';
|
import { BadRequestException, ExecutionContext, Logger, UnauthorizedException } from '@nestjs/common';
|
||||||
import { GqlExecutionContext } from '@nestjs/graphql';
|
import { GqlExecutionContext } from '@nestjs/graphql';
|
||||||
import { copyFile, unlink } from 'node:fs/promises';
|
import { access, constants, copyFile, unlink } from 'node:fs/promises';
|
||||||
|
import { dirname } from 'node:path';
|
||||||
|
|
||||||
import strftime from 'strftime';
|
import strftime from 'strftime';
|
||||||
|
|
||||||
@@ -245,9 +246,6 @@ export function handleAuthError(
|
|||||||
throw new UnauthorizedException(`${operation}: ${errorMessage}`);
|
throw new UnauthorizedException(`${operation}: ${errorMessage}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
import { access, constants } from 'node:fs/promises';
|
|
||||||
import { dirname } from 'node:path';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method to allow backing up a single file to a .bak file.
|
* Helper method to allow backing up a single file to a .bak file.
|
||||||
* @param path the file to backup, creates a .bak file in the same directory
|
* @param path the file to backup, creates a .bak file in the same directory
|
||||||
|
|||||||
Reference in New Issue
Block a user