new try to fix sync error
This commit is contained in:
parent
83c5c0853e
commit
db9fb233a5
3 changed files with 14 additions and 5 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
namespace $ {
|
namespace $ {
|
||||||
|
|
||||||
|
export class $hd_canary_app_server extends $hyoo_crus_dict.with({
|
||||||
|
Users: $hyoo_crus_list_ref_to( () => $hyoo_crus_atom_ref ),
|
||||||
|
}) {}
|
||||||
|
|
||||||
export class $hd_canary_app_home extends $hyoo_crus_home.with({
|
export class $hd_canary_app_home extends $hyoo_crus_home.with({
|
||||||
// Aliases: $hyoo_crus_dict_to( $hyoo_crus_list_str ),
|
// Aliases: $hyoo_crus_dict_to( $hyoo_crus_list_str ),
|
||||||
|
|
@ -29,7 +33,7 @@ namespace $ {
|
||||||
if(this.can_change()) {
|
if(this.can_change()) {
|
||||||
const url = this.url()!.val() as string
|
const url = this.url()!.val() as string
|
||||||
const title = this.title()!.val() as string
|
const title = this.title()!.val() as string
|
||||||
console.log({url, title})
|
// console.log({url, title})
|
||||||
this.$.$mol_log3_done({
|
this.$.$mol_log3_done({
|
||||||
place: this,
|
place: this,
|
||||||
message: this.land().ref().description!,
|
message: this.land().ref().description!,
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ namespace $.$$ {
|
||||||
@ $mol_mem
|
@ $mol_mem
|
||||||
users() {
|
users() {
|
||||||
const ref = $hyoo_crus_ref( this.$.$mol_fetch.text( '/join' ) )
|
const ref = $hyoo_crus_ref( this.$.$mol_fetch.text( '/join' ) )
|
||||||
return this.$.$hyoo_crus_glob.Node( ref, $hyoo_crus_list_vary )
|
return this.$.$hyoo_crus_glob.Node( ref, $hd_canary_app_server ).Users(null)!
|
||||||
}
|
}
|
||||||
|
|
||||||
@ $mol_mem
|
@ $mol_mem
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ namespace $ {
|
||||||
});
|
});
|
||||||
|
|
||||||
const home_land = this.$.$hyoo_crus_glob.home().land()
|
const home_land = this.$.$hyoo_crus_glob.home().land()
|
||||||
const list = home_land.Node( $hyoo_crus_list_vary ).Item('')
|
const list = home_land.Node( $hd_canary_app_server ).Item('').Users(null)!
|
||||||
|
|
||||||
for (const ref of list.items_vary()) {
|
for (const ref of list.items()) {
|
||||||
try {
|
try {
|
||||||
const user = this.$.$hyoo_crus_glob.Node((ref as $hyoo_crus_ref), $hd_canary_app_home )
|
const user = this.$.$hyoo_crus_glob.Node((ref as $hyoo_crus_ref), $hd_canary_app_home )
|
||||||
for (const site of user.Sites(null)?.remote_list() ?? []) {
|
for (const site of user.Sites(null)?.remote_list() ?? []) {
|
||||||
|
|
@ -40,13 +40,18 @@ namespace $ {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export class $hd_canary_join extends $mol_rest_resource {
|
export class $hd_canary_join extends $mol_rest_resource {
|
||||||
|
|
||||||
GET( msg: $mol_rest_message ) {
|
GET( msg: $mol_rest_message ) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const home_land = this.$.$hyoo_crus_glob.home().land()
|
const home_land = this.$.$hyoo_crus_glob.home().land()
|
||||||
home_land.give(null, $hyoo_crus_rank_rule)
|
home_land.give(null, $hyoo_crus_rank_rule)
|
||||||
|
|
||||||
const list = home_land.Node( $hyoo_crus_list_vary ).Item('')
|
const list = home_land.Node( $hd_canary_app_server ).Item('')
|
||||||
|
|
||||||
// const home_land = this.$.$hyoo_crus_glob.home( $hd_canary_app_home_server ).land()
|
// const home_land = this.$.$hyoo_crus_glob.home( $hd_canary_app_home_server ).land()
|
||||||
// home_land.give(null, $hyoo_crus_rank_rule)
|
// home_land.give(null, $hyoo_crus_rank_rule)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue