mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(database): 🎨 Improve database handlers to have more consistent naming and methods
This commit is contained in:
parent
a6159b9d55
commit
5565bf00de
47 changed files with 365 additions and 333 deletions
|
|
@ -58,10 +58,10 @@ export const addUserToMeilisearch = async (user: User) => {
|
|||
await meilisearch.index(MeiliIndexType.Accounts).addDocuments([
|
||||
{
|
||||
id: user.id,
|
||||
username: user.getUser().username,
|
||||
displayName: user.getUser().displayName,
|
||||
note: user.getUser().note,
|
||||
createdAt: user.getUser().createdAt,
|
||||
username: user.data.username,
|
||||
displayName: user.data.displayName,
|
||||
note: user.data.note,
|
||||
createdAt: user.data.createdAt,
|
||||
},
|
||||
]);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue