(sessionID: string, file: string)
| 15 | }) |
| 16 | |
| 17 | export function read(sessionID: string, file: string) { |
| 18 | log.info("read", { sessionID, file }) |
| 19 | const { read } = state() |
| 20 | read[sessionID] = read[sessionID] || {} |
| 21 | read[sessionID][file] = new Date() |
| 22 | } |
| 23 | |
| 24 | export function get(sessionID: string, file: string) { |
| 25 | return state().read[sessionID]?.[file] |