Commit e5a390d8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix dup request

parent af53a72c
{
"name": "mycard-mobile",
"version": "1.0.41",
"version": "1.0.42",
"license": "UNLISENCED",
"scripts": {
"ng": "ng",
......
......@@ -9,7 +9,7 @@ import { MatchDialogComponent } from './match-dialog/match-dialog.component';
import { ResultDialogComponent } from './result-dialog/result-dialog.component';
import { StorageService } from './storage.service';
import { HttpClient } from '@angular/common/http';
import { catchError, filter, map, mergeMap, scan, startWith } from 'rxjs/internal/operators';
import { catchError, filter, map, mergeMap, publishLast, refCount, scan, startWith } from 'rxjs/internal/operators';
import { webSocket } from 'rxjs/webSocket';
export interface User {
......@@ -149,7 +149,7 @@ export class YGOProService {
];
constructor(private login: LoginService, private http: HttpClient, private dialog: MatDialog, private storage: StorageService) {
const app = this.http.get<App[]>('https://api.mycard.moe/apps.json').pipe(map(apps => apps.find(_app => _app.id === 'ygopro')!));
const app = this.http.get<App[]>('https://api.mycard.moe/apps.json').pipe(map(apps => apps.find(_app => _app.id === 'ygopro')!), publishLast(), refCount());
this.news = app
.pipe(
map(_app =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment