Remove unused getAllPrivateConversations
SQL function
This commit is contained in:
parent
0e3d12c457
commit
ebcd3e3e43
3 changed files with 0 additions and 23 deletions
|
@ -201,7 +201,6 @@ const dataInterface: ServerInterface = {
|
|||
|
||||
getAllConversations,
|
||||
getAllConversationIds,
|
||||
getAllPrivateConversations,
|
||||
getAllGroupsInvolvingUuid,
|
||||
|
||||
searchConversations,
|
||||
|
@ -1491,22 +1490,6 @@ async function getAllConversationIds(): Promise<Array<string>> {
|
|||
return rows.map(row => row.id);
|
||||
}
|
||||
|
||||
async function getAllPrivateConversations(): Promise<Array<ConversationType>> {
|
||||
const db = getInstance();
|
||||
const rows: ConversationRows = db
|
||||
.prepare<EmptyQuery>(
|
||||
`
|
||||
SELECT json, profileLastFetchedAt
|
||||
FROM conversations
|
||||
WHERE type = 'private'
|
||||
ORDER BY id ASC;
|
||||
`
|
||||
)
|
||||
.all();
|
||||
|
||||
return rows.map(row => rowToConversation(row));
|
||||
}
|
||||
|
||||
async function getAllGroupsInvolvingUuid(
|
||||
uuid: UUIDStringType
|
||||
): Promise<Array<ConversationType>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue