mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
fixed most of dependencies errors
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { db } from '../services/databaseService.js';
|
||||
import { TemplateShift } from '../models/ShiftTemplate.js';
|
||||
import { ShiftPlan } from '../models/ShiftPlan.js';
|
||||
|
||||
async function checkTemplates() {
|
||||
try {
|
||||
const templates = await db.all<TemplateShift>(
|
||||
`SELECT st.*, u.name as created_by_name
|
||||
FROM shift_templates st
|
||||
LEFT JOIN users u ON st.created_by = u.id`
|
||||
const templates = await db.all<ShiftPlan>(
|
||||
`SELECT sp.*, u.name as created_by_name
|
||||
FROM shift_plans sp
|
||||
LEFT JOIN users u ON sp.created_by = u.id`
|
||||
);
|
||||
|
||||
console.log('Templates:', templates);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// backend/src/scripts/setupDefaultTemplate.ts
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { db } from '../services/databaseService.js';
|
||||
import { DEFAULT_TIME_SLOTS, TemplateShift } from '../models/ShiftTemplate.js';
|
||||
import { DEFAULT_ZEBRA_TIME_SLOTS, TemplateShift } from '../models/ShiftPlan.js';
|
||||
|
||||
interface AdminUser {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user