(persistentId: string)
| 11 | }) => `${new Date(creationTime).toISOString()}_${key}_${nodeId}`; |
| 12 | |
| 13 | export const creationTimeFromPersistentId = (persistentId: string) => { |
| 14 | const [creationTime] = persistentId.split("_"); |
| 15 | |
| 16 | if (!creationTime) { |
| 17 | throw new Error("Invalid persistentId"); |
| 18 | } |
| 19 | |
| 20 | return new Date(creationTime); |
| 21 | }; |
| 22 | |
| 23 | export const printNodeEntries = async (nodeId: string) => { |
| 24 | const nodeEntries = await kysely |