Update prettier to 3.3.3
This commit is contained in:
parent
1773ad1e11
commit
24a22bf191
109 changed files with 452 additions and 392 deletions
|
@ -687,9 +687,8 @@ function handleMessageJSON(
|
|||
async function getNewerMessagesByConversation(
|
||||
options: AdjacentMessagesByConversationOptionsType
|
||||
): Promise<Array<MessageType>> {
|
||||
const messages = await readableChannel.getNewerMessagesByConversation(
|
||||
options
|
||||
);
|
||||
const messages =
|
||||
await readableChannel.getNewerMessagesByConversation(options);
|
||||
|
||||
return handleMessageJSON(messages);
|
||||
}
|
||||
|
@ -709,9 +708,8 @@ async function getRecentStoryReplies(
|
|||
async function getOlderMessagesByConversation(
|
||||
options: AdjacentMessagesByConversationOptionsType
|
||||
): Promise<Array<MessageType>> {
|
||||
const messages = await readableChannel.getOlderMessagesByConversation(
|
||||
options
|
||||
);
|
||||
const messages =
|
||||
await readableChannel.getOlderMessagesByConversation(options);
|
||||
|
||||
return handleMessageJSON(messages);
|
||||
}
|
||||
|
@ -719,9 +717,8 @@ async function getOlderMessagesByConversation(
|
|||
async function getConversationRangeCenteredOnMessage(
|
||||
options: AdjacentMessagesByConversationOptionsType
|
||||
): Promise<GetConversationRangeCenteredOnMessageResultType<MessageType>> {
|
||||
const result = await readableChannel.getConversationRangeCenteredOnMessage(
|
||||
options
|
||||
);
|
||||
const result =
|
||||
await readableChannel.getConversationRangeCenteredOnMessage(options);
|
||||
|
||||
return {
|
||||
...result,
|
||||
|
|
|
@ -246,7 +246,7 @@ export const StickerPackStatuses = [
|
|||
'error',
|
||||
] as const;
|
||||
|
||||
export type StickerPackStatusType = typeof StickerPackStatuses[number];
|
||||
export type StickerPackStatusType = (typeof StickerPackStatuses)[number];
|
||||
|
||||
export type StorageServiceFieldsType = Readonly<{
|
||||
storageID?: string;
|
||||
|
|
|
@ -4896,10 +4896,8 @@ function getBackupCdnObjectMetadata(
|
|||
db: ReadableDB,
|
||||
mediaId: string
|
||||
): BackupCdnMediaObjectType | undefined {
|
||||
const [
|
||||
query,
|
||||
params,
|
||||
] = sql`SELECT * from backup_cdn_object_metadata WHERE mediaId = ${mediaId}`;
|
||||
const [query, params] =
|
||||
sql`SELECT * from backup_cdn_object_metadata WHERE mediaId = ${mediaId}`;
|
||||
|
||||
return db.prepare(query).get(params);
|
||||
}
|
||||
|
|
|
@ -95,10 +95,8 @@ export default function updateToSchemaVersion91(
|
|||
|
||||
// Grab PNI-specific count
|
||||
|
||||
const [
|
||||
beforeQuery,
|
||||
beforeParams,
|
||||
] = sql`SELECT count(*) from preKeys WHERE ourServiceId = ${pni}`;
|
||||
const [beforeQuery, beforeParams] =
|
||||
sql`SELECT count(*) from preKeys WHERE ourServiceId = ${pni}`;
|
||||
const beforeKeys = db.prepare(beforeQuery).pluck(true).get(beforeParams);
|
||||
logger.info(`updateToSchemaVersion91: Found ${beforeKeys} preKeys for PNI`);
|
||||
|
||||
|
|
|
@ -94,10 +94,8 @@ export function cleanKeys(
|
|||
}
|
||||
|
||||
// Grab PNI-specific count
|
||||
const [
|
||||
beforeQuery,
|
||||
beforeParams,
|
||||
] = sql`SELECT count(*) from ${tableName} WHERE ${idField} = ${pni}`;
|
||||
const [beforeQuery, beforeParams] =
|
||||
sql`SELECT count(*) from ${tableName} WHERE ${idField} = ${pni}`;
|
||||
const beforeKeys = db.prepare(beforeQuery).pluck(true).get(beforeParams);
|
||||
logger.info(`${logId}: Found ${beforeKeys} keys for PNI`);
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ export type QueryFragmentValue = QueryFragment | QueryTemplateParam;
|
|||
|
||||
export type QueryFragment = [
|
||||
{ fragment: string },
|
||||
ReadonlyArray<QueryTemplateParam>
|
||||
ReadonlyArray<QueryTemplateParam>,
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue