Update application features and add scripts (core changes)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import 'dotenv/config';
|
||||
import { db } from './lib/db';
|
||||
async function run() {
|
||||
const rooms = await db.room.findMany({ orderBy: { createdAt: 'asc' } });
|
||||
for (const r of rooms) {
|
||||
console.log(r.nameTr, r.images[0]);
|
||||
}
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user