mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
bug fix
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
d71a41ef71
commit
da61707caa
@ -171,19 +171,6 @@ export default class FeatureToggleStore implements IFeatureToggleStore {
|
||||
return present;
|
||||
}
|
||||
|
||||
private upsert = (params: any) => {
|
||||
const { table, object, constraint } = params;
|
||||
const insert = this.db(table).insert(object);
|
||||
const update = this.db.queryBuilder().update(object);
|
||||
return this.db
|
||||
.raw(`? ON CONFLICT ${constraint} DO ? returning *`, [
|
||||
insert,
|
||||
update,
|
||||
])
|
||||
.get('rows')
|
||||
.get(0);
|
||||
};
|
||||
|
||||
async setLastSeen(data: LastSeenInput[]): Promise<void> {
|
||||
const now = new Date();
|
||||
const enhancedData = data.map((value) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user