@wopr-network/platform-core 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,7 +56,7 @@ export class DrizzleDeletionRepository {
|
|
|
56
56
|
.update(accountDeletionRequests)
|
|
57
57
|
.set({
|
|
58
58
|
status: "completed",
|
|
59
|
-
completedAt: sql `now()`,
|
|
59
|
+
completedAt: sql `now()::text`,
|
|
60
60
|
deletionSummary: summary,
|
|
61
61
|
updatedAt: sql `now()`,
|
|
62
62
|
})
|
|
@@ -66,7 +66,7 @@ export class DrizzleDeletionRepository {
|
|
|
66
66
|
const rows = await this.db
|
|
67
67
|
.select()
|
|
68
68
|
.from(accountDeletionRequests)
|
|
69
|
-
.where(and(eq(accountDeletionRequests.status, "pending"), lte(accountDeletionRequests.deleteAfter, sql `now()`)));
|
|
69
|
+
.where(and(eq(accountDeletionRequests.status, "pending"), lte(accountDeletionRequests.deleteAfter, sql `now()::text`)));
|
|
70
70
|
return rows.map(toRow);
|
|
71
71
|
}
|
|
72
72
|
async list(opts) {
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@ export class DrizzleDeletionExecutorRepository implements IDeletionExecutorRepos
|
|
|
93
93
|
.update(accountDeletionRequests)
|
|
94
94
|
.set({
|
|
95
95
|
status: "completed",
|
|
96
|
-
completedAt: sql`now()`,
|
|
96
|
+
completedAt: sql`now()::text`,
|
|
97
97
|
deletionSummary,
|
|
98
98
|
updatedAt: sql`now()`,
|
|
99
99
|
})
|
|
@@ -85,7 +85,7 @@ export class DrizzleDeletionRepository implements IDeletionRepository {
|
|
|
85
85
|
.update(accountDeletionRequests)
|
|
86
86
|
.set({
|
|
87
87
|
status: "completed",
|
|
88
|
-
completedAt: sql`now()`,
|
|
88
|
+
completedAt: sql`now()::text`,
|
|
89
89
|
deletionSummary: summary,
|
|
90
90
|
updatedAt: sql`now()`,
|
|
91
91
|
})
|
|
@@ -96,7 +96,9 @@ export class DrizzleDeletionRepository implements IDeletionRepository {
|
|
|
96
96
|
const rows = await this.db
|
|
97
97
|
.select()
|
|
98
98
|
.from(accountDeletionRequests)
|
|
99
|
-
.where(
|
|
99
|
+
.where(
|
|
100
|
+
and(eq(accountDeletionRequests.status, "pending"), lte(accountDeletionRequests.deleteAfter, sql`now()::text`)),
|
|
101
|
+
);
|
|
100
102
|
return rows.map(toRow);
|
|
101
103
|
}
|
|
102
104
|
|