9 lines
201 B
TypeScript
9 lines
201 B
TypeScript
import { db } from './lib/db';
|
|
async function run() {
|
|
const rooms = await db.room.findMany();
|
|
for (const r of rooms) {
|
|
if (r.images.length > 0) console.log(r.nameTr, r.images[0]);
|
|
}
|
|
}
|
|
run();
|