I see this error with the app, reported by NextJS, please fix it. The er
This commit is contained in:
parent
1b3424655b
commit
a7f4242ecc
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
'use server';
|
||||
|
||||
import db from '@/lib/db';
|
||||
import type { Toy, User } from '@/types';
|
||||
import { mockOwnerProfiles } from '@/lib/mockData';
|
||||
|
|
|
|||
|
|
@ -61,8 +61,12 @@ function initDb() {
|
|||
const insertManyUsers = db.transaction((users) => {
|
||||
for (const user of users) {
|
||||
insertUser.run({
|
||||
...user,
|
||||
id: user.id,
|
||||
name: user.name,
|
||||
email: `${user.id}@example.com`, // Generate mock email
|
||||
role: user.role,
|
||||
avatarUrl: user.avatarUrl ?? null,
|
||||
bio: user.bio ?? null
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue