MCPcopy Create free account
hub / github.com/adonisjs/session / reflashExcept

Method reflashExcept

src/session.ts:569–571  ·  view source on GitHub ↗

* Reflashes messages (except some keys) from the last request in the current response * * @param keys - Array of keys to exclude from reflashing * * @example * session.reflashExcept(['error', 'warning'])

(keys: string[])

Source from the content-addressed store, hash-verified

567 * session.reflashExcept(['error', 'warning'])
568 */
569 reflashExcept(keys: string[]) {
570 this.#getFlashStore('write').set('reflashed', lodash.omit(this.flashMessages.all(), keys))
571 }
572
573 /**
574 * Checks if the current store supports session tagging.

Callers 1

session.spec.tsFile · 0.80

Calls 3

#getFlashStoreMethod · 0.95
setMethod · 0.80
allMethod · 0.45

Tested by

no test coverage detected