style(backend): format signal persistence
This commit is contained in:
@@ -387,10 +387,7 @@ export const listAdmittedUnused = query({
|
|||||||
args: {
|
args: {
|
||||||
organizationId: v.id("organizations"),
|
organizationId: v.id("organizations"),
|
||||||
},
|
},
|
||||||
handler: async (
|
handler: async (ctx, args): Promise<ConversationMessageSourceView[]> => {
|
||||||
ctx,
|
|
||||||
args
|
|
||||||
): Promise<ConversationMessageSourceView[]> => {
|
|
||||||
await requireOrganizationMember(ctx, args.organizationId);
|
await requireOrganizationMember(ctx, args.organizationId);
|
||||||
const conversationId = args.organizationId;
|
const conversationId = args.organizationId;
|
||||||
|
|
||||||
@@ -405,8 +402,7 @@ export const listAdmittedUnused = query({
|
|||||||
.take(100);
|
.take(100);
|
||||||
|
|
||||||
const candidates = admitted.filter(
|
const candidates = admitted.filter(
|
||||||
(message) =>
|
(message) => message.role === "user" && message.status === "admitted"
|
||||||
message.role === "user" && message.status === "admitted"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const unused: ConversationMessageSourceView[] = [];
|
const unused: ConversationMessageSourceView[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user