MCPcopy Index your code
hub / github.com/ether/etherpad / saveToDatabase

Method saveToDatabase

src/node/db/Pad.ts:347–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345
346 // save all attributes to the database
347 async saveToDatabase() {
348 // @ts-ignore
349 await this.db.set(`pad:${this.id}`, this);
350 }
351
352 // get time of last edit (changeset application)
353 async getLastEdit() {

Callers 10

appendRevisionMethod · 0.95
appendChatMessageMethod · 0.95
copyMethod · 0.95
copyPadWithoutHistoryMethod · 0.95
setPublicStatusMethod · 0.95
addSavedRevisionMethod · 0.95
installLegacyATextFunction · 0.80
handlePadOptionsMessageFunction · 0.80
handleClientReadyFunction · 0.80
rebuildPad.tsFile · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected