mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-18 18:51:13 +10:00
update to nuxt 4
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { HardwarePlatform } from "~/prisma/client/enums";
|
||||
import { HardwarePlatform } from "~~/prisma/client/enums";
|
||||
|
||||
export function parsePlatform(platform: string) {
|
||||
switch (platform.toLowerCase()) {
|
||||
|
||||
@ -80,11 +80,12 @@ export class PriorityListIndexed<T> extends PriorityList<T> {
|
||||
|
||||
override pop(position?: number): PriorityTagged<T> {
|
||||
const value = super.pop(position);
|
||||
if(!value) return undefined!;
|
||||
|
||||
const index = this.getIndex(value.object);
|
||||
this.indexMap.delete(index);
|
||||
|
||||
return value;
|
||||
return value!;
|
||||
}
|
||||
|
||||
get(index: string) {
|
||||
|
||||
Reference in New Issue
Block a user