mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
🐜 fix: Fix user relations in zero-sync schema
This commit is contained in:
@@ -112,6 +112,11 @@ export const schema = createSchema({
|
||||
destSchema: members,
|
||||
destField: ["user_id"],
|
||||
}),
|
||||
steamAccounts: r.many({
|
||||
sourceField: ["id"],
|
||||
destSchema: steam_accounts,
|
||||
destField: ["user_id"]
|
||||
})
|
||||
})),
|
||||
relationships(teams, (r) => ({
|
||||
owner: r.one({
|
||||
@@ -119,11 +124,6 @@ export const schema = createSchema({
|
||||
destSchema: users,
|
||||
destField: ["id"],
|
||||
}),
|
||||
steamAccount: r.one({
|
||||
sourceField: ["owner_id"],
|
||||
destSchema: steam_accounts,
|
||||
destField: ["user_id"],
|
||||
}),
|
||||
members: r.many({
|
||||
sourceField: ["id"],
|
||||
destSchema: members,
|
||||
|
||||
Reference in New Issue
Block a user