mirror of
https://github.com/immich-app/immich.git
synced 2026-03-07 10:37:22 +03:00
@@ -79,6 +79,16 @@ export class UserRepository {
|
||||
.executeTakeFirst();
|
||||
}
|
||||
|
||||
@GenerateSql()
|
||||
getFileSamples() {
|
||||
return this.db
|
||||
.selectFrom('user')
|
||||
.select(['id', 'profileImagePath'])
|
||||
.where('profileImagePath', '!=', sql.lit(''))
|
||||
.limit(sql.lit(3))
|
||||
.execute();
|
||||
}
|
||||
|
||||
@GenerateSql()
|
||||
async hasAdmin(): Promise<boolean> {
|
||||
const admin = await this.db
|
||||
|
||||
Reference in New Issue
Block a user