1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

No need to extend Insert type now that Insert extends Settings

This commit is contained in:
Gastón Fournier 2025-07-30 11:37:42 +02:00
parent 7456ae75f3
commit 6f8c2cacba
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -16,7 +16,6 @@ import type {
IProjectHealthUpdate,
IProjectInsert,
IProjectQuery,
IProjectSettings,
IProjectEnterpriseSettingsUpdate,
IProjectStore,
ProjectEnvironment,
@ -199,9 +198,7 @@ class ProjectStore implements IProjectStore {
});
}
async create(
project: IProjectInsert & IProjectSettings,
): Promise<IProject> {
async create(project: IProjectInsert): Promise<IProject> {
const row = await this.db(TABLE)
.insert({ ...this.fieldToRow(project), created_at: new Date() })
.returning('*');