fix syntax error

This commit is contained in:
syuilo 2023-02-21 10:41:09 +09:00
parent 16e3cb01ca
commit 7925b130e8

View file

@ -47,8 +47,9 @@
<MkButton class="button" @click="more()">
<i class="ti ti-reload"></i>{{ i18n.ts.more }}
</MkButton>
</MkSpacer>
</MkStickyContainer>
</div>
</MkSpacer>
</MkStickyContainer>
</template>
<script lang="ts" setup>
@ -127,7 +128,7 @@ function save(ad) {
}
function more() {
os.api('admin/ad/list', { untilId: ads.reduce((acc, ad) => ad.id != null ? ad : acc).id }).then(adsResponse => {
ads = ads.concat(adsResponse.map(r => {
ads = ads.concat(adsResponse.map(r => {
const exdate = new Date(r.expiresAt);
const stdate = new Date(r.startsAt);
exdate.setMilliseconds(exdate.getMilliseconds() - localTimeDiff);