OSDN Git Service

buildEquipmentEnhancementListをSwift4.0に更新
[kcd/KCD.git] / KCD / UpdateQuestListCommand.swift
1 //
2 //  UpdateQuestListCommand.swift
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2017/01/08.
6 //  Copyright © 2017年 Hori,Masaki. All rights reserved.
7 //
8
9 import Cocoa
10
11 final class UpdateQuestListCommand: JSONCommand {
12     
13     override func execute() {
14         
15         let store = ServerDataStore.oneTimeEditor()
16         
17         parameter["api_quest_id"]
18             .int
19             .flatMap(store.quest(by:))
20             .map {
21                 $0.progress_flag = 0
22                 $0.state = 1
23         }
24     }
25 }