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,5 +1,9 @@
|
|||
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({
|
||||
// Aliases: $hyoo_crus_dict_to( $hyoo_crus_list_str ),
|
||||
// Stat: $hyoo_crus_atom_ref_to( ()=> $hyoo_crus_app_stat ),
|
||||
|
|
@ -29,7 +33,7 @@ namespace $ {
|
|||
if(this.can_change()) {
|
||||
const url = this.url()!.val() as string
|
||||
const title = this.title()!.val() as string
|
||||
console.log({url, title})
|
||||
// console.log({url, title})
|
||||
this.$.$mol_log3_done({
|
||||
place: this,
|
||||
message: this.land().ref().description!,
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ namespace $.$$ {
|
|||
@ $mol_mem
|
||||
users() {
|
||||
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
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace $ {
|
|||
});
|
||||
|
||||
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 {
|
||||
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() ?? []) {
|
||||
|
|
@ -40,13 +40,18 @@ namespace $ {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
export class $hd_canary_join extends $mol_rest_resource {
|
||||
|
||||
GET( msg: $mol_rest_message ) {
|
||||
|
||||
|
||||
|
||||
const home_land = this.$.$hyoo_crus_glob.home().land()
|
||||
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()
|
||||
// home_land.give(null, $hyoo_crus_rank_rule)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue