Migrate to MariaDB backend and fix bed management
- Switch from SQLite to MariaDB for database backend - Fix bed state updates on admission (iniciarInternacion) - Fix bed updates on admission edit (actualizarInternacion) - Fix bed updates on discharge (finalizarInternacion): delete if fuera de area, mark available otherwise - Fix NuevoIngreso to wait for cama creation before creating internacion - Fix patient undefined check in Cultivos - Update CORS to allow all origins - Remove unused files
This commit is contained in:
@@ -19,7 +19,10 @@ import { initDb,
|
||||
} from './db-mariadb.js';
|
||||
|
||||
const app = express();
|
||||
app.use(cors());
|
||||
app.use(cors({
|
||||
origin: true,
|
||||
credentials: true
|
||||
}));
|
||||
app.use(express.json({ limit: '50mb' }));
|
||||
|
||||
// UUID generator
|
||||
|
||||
Reference in New Issue
Block a user