mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 06:19:05 +02:00
fixup admin platform
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
MATCH (a)-[r1:Admin]->(b)
|
||||
WHERE id(a) = $id
|
||||
RETURN collect({id: id(b), first_name: b.first_name, last_name: b.last_name, adminSince: r1.added}) as managed;
|
||||
RETURN
|
||||
collect(
|
||||
{
|
||||
id: id(b),
|
||||
label: labels(b),
|
||||
first_name: b.first_name,
|
||||
last_name: b.last_name,
|
||||
adminSince: r1.added
|
||||
}
|
||||
) AS managed;
|
@@ -58,15 +58,11 @@ const (
|
||||
|
||||
// Admin defines model for Admin.
|
||||
type Admin struct {
|
||||
EndElementId *string `json:"EndElementId,omitempty"`
|
||||
EndId *int `json:"EndId,omitempty"`
|
||||
Props *struct {
|
||||
Added *int `json:"added,omitempty"`
|
||||
} `json:"Props,omitempty"`
|
||||
AdminSince *int `json:"adminSince,omitempty"`
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
Id *int `json:"id,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
AdminSince *int `json:"adminSince,omitempty"`
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
Id *int `json:"id,omitempty"`
|
||||
Label *[]string `json:"label,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
}
|
||||
|
||||
// AdminRelationship defines model for AdminRelationship.
|
||||
|
Reference in New Issue
Block a user