mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-29 10:04:23 +01:00
delay -> sleep, style tweaks
This commit is contained in:
@@ -19,7 +19,7 @@ export class DittoPostgres {
|
||||
if (!this.db) {
|
||||
this.db = new Kysely({
|
||||
dialect: new PostgresJSDialect({
|
||||
postgres: this.postgres as any,
|
||||
postgres: this.postgres,
|
||||
}),
|
||||
log: KyselyLogger,
|
||||
});
|
||||
|
||||
@@ -63,4 +63,6 @@ export async function getTestDB() {
|
||||
};
|
||||
}
|
||||
|
||||
export const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
export function sleep(ms: number): Promise<void> {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user