Skip to content

Commit cb37cf6

Browse files
lukasdotcombackportbot[bot]
authored andcommitted
Fix on some instances EntityType not being found
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
1 parent 0c6231e commit cb37cf6

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

lib/Db/EntityType.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/**
4+
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
5+
* SPDX-License-Identifier: AGPL-3.0-or-later
6+
*/
7+
8+
namespace OCA\OpenAi\Db;
9+
10+
enum EntityType: int {
11+
case USER = 0;
12+
case GROUP = 1;
13+
}

lib/Db/QuotaUserMapper.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
use OCP\DB\QueryBuilder\IQueryBuilder;
1313
use OCP\IDBConnection;
1414

15-
enum EntityType: int {
16-
case USER = 0;
17-
case GROUP = 1;
18-
}
19-
2015
/**
2116
* @extends QBMapper<QuotaUser>
2217
*/

0 commit comments

Comments
 (0)