fix: backup restore formatting

This commit is contained in:
Eli Bosley
2025-01-28 15:01:01 -05:00
parent 8d905974be
commit 0cfdd5a61b

View File

@@ -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