(aChangeset: AChangeSet, timestamp: number, isKeyRev: boolean, authorId: string, atext: any, pool: any)
| 24 | } |
| 25 | |
| 26 | const createRevision = async (aChangeset: AChangeSet, timestamp: number, isKeyRev: boolean, authorId: string, atext: any, pool: any) => { |
| 27 | |
| 28 | if (authorId !== '') pool.putAttrib(['author', authorId]); |
| 29 | |
| 30 | return { |
| 31 | changeset: aChangeset, |
| 32 | meta: { |
| 33 | author: authorId, |
| 34 | timestamp: timestamp, |
| 35 | ...isKeyRev ? { |
| 36 | pool: pool, |
| 37 | atext: atext, |
| 38 | } : {}, |
| 39 | }, |
| 40 | }; |
| 41 | } |
| 42 | |
| 43 | export const deleteRevisions = async (padId: string, keepRevisions: number): Promise<boolean> => { |
| 44 |
no test coverage detected