mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 03:48:14 +03:00
add info logging for the start of migration
This commit is contained in:
@@ -12,6 +12,7 @@ export default async function MigrateRecords(
|
||||
HandlerFN: (c: unknown) => unknown
|
||||
) {
|
||||
let existingRecords = await existingCollection.count({});
|
||||
logger.info(`Starting migration for ${collectionName}...`);
|
||||
|
||||
if (existingRecords > 0) {
|
||||
logger.error(`${existingRecords} documents already exist in db, terminating.`);
|
||||
|
||||
Reference in New Issue
Block a user