File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed
modules/ingestor/src/service/advisory/osv Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ impl MigrationTrait for Migration {
9
9
async fn up ( & self , manager : & SchemaManager ) -> Result < ( ) , DbErr > {
10
10
let db = manager. get_connection ( ) ;
11
11
12
- db. execute_unprepared (
13
- & Query :: update ( )
14
- . table ( VersionScheme :: Table )
15
- . value ( VersionScheme :: Id , "python" )
16
- . and_where ( Expr :: col ( VersionScheme :: Id ) . eq ( "pypi" ) )
17
- . to_owned ( )
18
- . to_string ( PostgresQueryBuilder ) ,
12
+ db. execute (
13
+ db . get_database_backend ( ) . build (
14
+ Query :: update ( )
15
+ . table ( VersionScheme :: Table )
16
+ . value ( VersionScheme :: Id , "python" )
17
+ . and_where ( Expr :: col ( VersionScheme :: Id ) . eq ( "pypi" ) ) ,
18
+ ) ,
19
19
)
20
20
. await ?;
21
21
Original file line number Diff line number Diff line change @@ -173,17 +173,7 @@ impl<'g> OsvLoader<'g> {
173
173
)
174
174
. await ?;
175
175
}
176
- ( RangeType :: Ecosystem , Ecosystem :: PyPI ) => {
177
- create_package_status (
178
- & advisory_vuln,
179
- & purl,
180
- range,
181
- & VersionScheme :: Python ,
182
- & tx,
183
- )
184
- . await ?;
185
- }
186
- ( RangeType :: Ecosystem , Ecosystem :: Python ) => {
176
+ ( RangeType :: Ecosystem , Ecosystem :: PyPI | Ecosystem :: Python ) => {
187
177
create_package_status (
188
178
& advisory_vuln,
189
179
& purl,
You can’t perform that action at this time.
0 commit comments