From 9deaa5861e6869ea0a77099dda7768f17859217a Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 8 Aug 2024 11:36:55 +0200 Subject: [PATCH] Move s3 util functions into utils folder It's not actually used as a standalone script, so doesn't belong in the scripts directory. --- src/scripts/build/uploadAutoCompleteLocations.js | 2 +- src/scripts/cronjobs/syncBreaches.ts | 2 +- src/{scripts => utils}/s3.js | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{scripts => utils}/s3.js (100%) diff --git a/src/scripts/build/uploadAutoCompleteLocations.js b/src/scripts/build/uploadAutoCompleteLocations.js index 666dd20306a..bb1b26ea225 100644 --- a/src/scripts/build/uploadAutoCompleteLocations.js +++ b/src/scripts/build/uploadAutoCompleteLocations.js @@ -22,7 +22,7 @@ import { rmSync, writeFileSync, } from "fs"; -import { uploadToS3 } from "../s3.js"; +import { uploadToS3 } from "../../utils/s3.js"; import Sentry from "@sentry/nextjs"; import os from "os"; import path from "path"; diff --git a/src/scripts/cronjobs/syncBreaches.ts b/src/scripts/cronjobs/syncBreaches.ts index 8c3f55da45a..99a248109ed 100644 --- a/src/scripts/cronjobs/syncBreaches.ts +++ b/src/scripts/cronjobs/syncBreaches.ts @@ -18,7 +18,7 @@ import { upsertBreaches, updateBreachFaviconUrl, } from "../../db/tables/breaches"; -import { uploadToS3 } from "../s3.js"; +import { uploadToS3 } from "../../utils/s3.js"; const SENTRY_SLUG = "cron-sync-breaches"; diff --git a/src/scripts/s3.js b/src/utils/s3.js similarity index 100% rename from src/scripts/s3.js rename to src/utils/s3.js