mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-05 22:40:12 +01:00
91f5f94200
* multi user wip * WIP MUM features * invitation mgmt * suspend or unsuspend users * workspace mangement * manage chats * manage chats * add Support for admin system settings for users to delete workspaces and limit chats per user * fix issue ith system var update app to lazy load invite page * cleanup and bug fixes * wrong method * update readme * update readme * update readme * bump version to 0.1.0
18 lines
413 B
JavaScript
18 lines
413 B
JavaScript
const { WorkspaceChats } = require("../../../models/workspaceChats");
|
|
|
|
async function resetMemory(workspace, _message, msgUUID, user = null) {
|
|
await WorkspaceChats.markHistoryInvalid(workspace.id, user);
|
|
return {
|
|
uuid: msgUUID,
|
|
type: "textResponse",
|
|
textResponse: "Workspace chat memory was reset!",
|
|
sources: [],
|
|
close: true,
|
|
error: false,
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
resetMemory,
|
|
};
|