MCPcopy Create free account
hub / github.com/ether/etherpad / createRevision

Function createRevision

src/node/utils/Cleanup.ts:26–41  ·  view source on GitHub ↗
(aChangeset: AChangeSet, timestamp: number, isKeyRev: boolean, authorId: string, atext: any, pool: any)

Source from the content-addressed store, hash-verified

24}
25
26const 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
43export const deleteRevisions = async (padId: string, keepRevisions: number): Promise<boolean> => {
44

Callers 1

deleteRevisionsFunction · 0.85

Calls 1

putAttribMethod · 0.80

Tested by

no test coverage detected