MCPcopy Create free account
hub / github.com/async-labs/async / getListForThread

Method getListForThread

api/server/models/Message.ts:172–178  ·  view source on GitHub ↗
({ userId, chatId, messageId })

Source from the content-addressed store, hash-verified

170 }
171
172 public static async getListForThread({ userId, chatId, messageId }) {
173 await this.checkPermission({ userId, chatId });
174
175 const filter = { chatId, parentMessageId: messageId };
176
177 return this.find(filter).sort({ createdAt: 1, _id: 1 }).setOptions({ lean: true });
178 }
179
180 // done: add parentMessageId
181 public static async addOrEdit({ content, chatId, teamId, userId, id, files, parentMessageId }) {

Callers

nothing calls this directly

Calls 1

checkPermissionMethod · 0.95

Tested by

no test coverage detected