mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-01-06 11:39:39 -06:00
reorganized files
This commit is contained in:
@@ -2,10 +2,10 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// Define the directory to search in
|
||||
const DIRECTORY = './src/model/generated-zod/';
|
||||
const DIRECTORY = './src/shared/model/generated-zod/';
|
||||
|
||||
// Define the string to search for and the replacement string
|
||||
const SEARCH_STRING = 'import * as imports from "../../../prisma/null"';
|
||||
const SEARCH_STRING = 'import * as imports from "../../../../prisma/null"';
|
||||
const REPLACEMENT_STRING = '';
|
||||
|
||||
// Function to recursively find all .ts files in the directory
|
||||
|
||||
@@ -26,24 +26,5 @@ export class Toast {
|
||||
}
|
||||
});
|
||||
});
|
||||
/*
|
||||
try {
|
||||
|
||||
|
||||
|
||||
const result = await action();
|
||||
if (result && result.message && result.status === 'error') {
|
||||
toast.error('Fehler: ' + result.message);
|
||||
}
|
||||
if (result && result.status === 'error') {
|
||||
toast.error('Ein unbekannter Fehler ist aufgetreten');
|
||||
}
|
||||
if (result && result.message && result.status === 'success') {
|
||||
toast.success(result.message);
|
||||
}
|
||||
return result;
|
||||
} catch (ex) {
|
||||
toast.error('Ein unbekannter Fehler ist aufgetreten');
|
||||
}*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user