refactor: controllers and models to adapt them to the previous version of my-links

This commit is contained in:
Sonny
2024-05-24 23:54:43 +02:00
committed by Sonny
parent 31b4f22772
commit b28499a69a
19 changed files with 113 additions and 85 deletions

View File

@@ -16,13 +16,14 @@ export default class extends BaseSeeder {
export function createRandomUser() {
return {
id: faker.string.uuid(),
id: faker.number.int(),
email: faker.internet.email(),
name: faker.internet.userName(),
nickName: faker.internet.displayName(),
avatarUrl: faker.image.avatar(),
isAdmin: false,
providerId: faker.string.uuid(),
providerId: faker.number.int(),
providerType: 'google' as const,
token: {} as GoogleToken,
};
}