-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump typeorm deps from 0.2.41 to 0.3.17 * Rename Connection to DataSource * * Rename `findOne({ id })` to `findOneBy({ id })` and `findOneOrFail({ id })` to `findOneByOrFail({ id })` * Add missing `where` key to `find()` args * Use findOne with a (mandatory) where clause * Replace db.close with ds.destroy * wait for dataSource initialization * Missing renames of Connection to Datasource * Remove unnecessary if (finOneOrFail would already throw an error) * Replace `connect` with `initialize` and `close` with `destroy` * Send retry request for CIPHERTEXT msgs on getMessages (#47) * Add `node` to `FullBaileysMessage` (message.original`) * When calling `fetchMessages` send a retry request for any message that was not decrypted before * Bump baileys
- Loading branch information
Showing
25 changed files
with
238 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { Connection, EntityManager } from 'typeorm' | ||
import { Not, type DataSource, type EntityManager, IsNull } from 'typeorm' | ||
import DBMessage from '../entities/DBMessage' | ||
|
||
export default async (db: EntityManager | Connection) => { | ||
export default async (db: EntityManager | DataSource) => { | ||
const msg = await db.getRepository(DBMessage) | ||
.findOne({ order: { orderKey: 'ASC' }, select: ['orderKey'] }) | ||
.findOne({ where: { id: Not(IsNull()) }, order: { orderKey: 'ASC' }, select: ['orderKey'] }) | ||
return msg?.orderKey | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { Connection, EntityManager } from 'typeorm' | ||
import { Not, type DataSource, type EntityManager, IsNull } from 'typeorm' | ||
import DBMessage from '../entities/DBMessage' | ||
|
||
export default async (db: EntityManager | Connection) => { | ||
export default async (db: EntityManager | DataSource) => { | ||
const msg = await db.getRepository(DBMessage) | ||
.findOne({ order: { orderKey: 'DESC' }, select: ['orderKey'] }) | ||
.findOne({ where: { id: Not(IsNull()) }, order: { orderKey: 'DESC' }, select: ['orderKey'] }) | ||
return msg?.orderKey | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.